- Package:
- initscripts
- Source:
- initscripts
- Submitter:
- Lorenzo Puliti
- Date:
- 2025-03-20 13:18:01 UTC
- Severity:
- normal
Hi all, there are 2 scripts that run fsck without testing if the command is available in the system: checkroot.sh and checkfs.sh This package "only" recommands e2fsprogs, so I think it should just print a warning and go ahead if fsck is not available. The current behaviour can fail to boot in some cases https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028181 Lorenzo
fsck is util-linux, not e2fsprogs. bye, //mirabilos
Yes, but fsck.ext4 is e2fsprogs and that is what is missing in #1028181. A clean way of handling missing filesystem-specific fsck isn't immediately apparent to me. fsck doesn't distinguish a missing filesystem-specific checker from other operational errors. Mark
But that’s ⓐ the user’s problem and ⓑ not necessarily an error as there exist filesystems for which no fsck binary exists. (If the user has set pass to ≠0 in fstab(5) it’s their own fault of course.) bye, //mirabilos
Thorsten, Thanks for this. Yes, although I think the default fstab has pass=1 for root. In #1028181, Holger says If that is true (and I have no particular reason to doubt him) maybe the default fstab should be changed now the default fs is ext4. But it doesn't look like something to insert special handling for in initscripts. Mark
Nope. The default fstab is precisely this: The person-or-thing which enters a line with pass ≠ 0 is responsible for ensuring (first!) that the fsck utility is installed. This is… I don’t even know. Want. Arrgh. No. bye, //mirabilos
Yes, That is the debootstrap one. However on a new installation, partconf then fills in the entries for the newly partitioned system[1] Mark [1] https://sources.debian.org/src/partconf/1.52/mkfstab.c/#L300
Then you’ve identified which tool is responsible for ensuring that either the respective fsck is installed or the passno is 0. bye, //mirabilos
Control: reassign -1 partconf Control: forcemerge 220282 -1 Therefore this is a duplicate of #220282. Reassigning and merging. Mark
AFAICS, partconf udeb does not exist any more and was replaced with partman ages ago. partman-basicfilesystems and partman-ext3 queue e2fsprogs for installation when ext2/3/4 partitions are used.