chiark / gitweb /
fsck,fstab-generator: be lenient about missing fsck.<type>
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Nov 2013 05:53:59 +0000 (00:53 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 16 Nov 2013 03:53:14 +0000 (22:53 -0500)
commit94192cdaf652c9717f15274504ed315126c07a93
treef516c284f8ac20132cb0f62d41a1634f40cb7fac
parente375825da0cbdbf3be755c277f9c0dec35b41a09
fsck,fstab-generator: be lenient about missing fsck.<type>

If fstab contains 1 for passno, treat this as an error, but only warn
briefly. If fstab doesn't contain this information, don't complain at
all.

Patch is complicated a bit by the fact that we might have the fstype specified
in fstab or on /proc/cmdline, in which case we can check if we have the appropriate
fsck tool, or not specified, or specified as auto, in which case we have to look
and check the type of the filesystem ourselves. It cannot be done before the
device appears, so it is too early in the generator phase, and it must be done
directly in fsck service.
src/fsck/fsck.c
src/fstab-generator/fstab-generator.c