Bug#686895: initscripts: /forcefsck: fsck -f undefined (e2fsck-ism)

Pierre Ynard linkfanel at yahoo.fr
Tue Mar 5 02:50:54 GMT 2019

reopen 686895

/etc/init.d/checkfs.sh also checks forcefsck to pass -f to fsck,
so it needs to be fixed too. It won't be as simple as checkroot.sh
because fsck -A can apply to any number of filesystems of any type and
checkfs.sh doesn't track specifics when calling it.

Perhaps the simplest approach, if forcefsck is requested, would be to
add a first pass of fsck -A -f -t ext3,... and then let the normal code
proceed: this saves a lot of complexity and the worst that should happen
is that fsck wastes a bit of time doing a fast and clean second check of
the involved filesystems after the forced slow check.

Also, I can see that at least reiserfsck too honors -f as --force with
the same meaning, so I suppose it should be added alongside ext*.

Pierre Ynard

More information about the Debian-init-diversity mailing list