Systemd/src/fstab-generator
Zbigniew Jędrzejewski-Szmek 4e8da52959 fstab-generator: use RequiresOverridable for fsck units
This allows the user to disable fsck's by masking.

If fsck fails, emergency target is started, the user might mount the
unit using mount and disable fsck by masking the unit. In this case,
.mount will be active because the mount is detect through
/proc/self/mountinfo, but systemd-fsck@.service will still be in
failed mode. This results in a funny situation where

$ systemctl show -p ActiveState local-fs.target yyy.mount
ActiveState=active
ActiveState=active

$ sudo systemctl start local-fs.target
[sudo] password for test:
Failed to start local-fs.target: Unit systemd-fsck@xxx.service is masked.
2013-11-15 22:53:14 -05:00
..
fstab-generator.c fstab-generator: use RequiresOverridable for fsck units 2013-11-15 22:53:14 -05:00
Makefile mount: replace PID1 internal fstab parser with generator 2012-05-22 19:25:17 +02:00