On Wed, 06.05.15 01:26, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote:
> In the initramfs, we run systemd-fsck@<sysroot-device>.service. > In the real system we run systemd-fsck-root.service. Generate > a fake systemd-fsck-root.service if we are running a unit check > for the root file system. We don't really care if the real fsck unit > fails, because the failure will be handled in some other way. > > This fake unit is created and pulled in only when we actually plan to > check the file system for /sysroot. This way we avoid having an > active/exited systemd-fsck-root.service in the main filesystem if > we didn't do anything. Hmpf, I really don't like creating "fake" units like this that fork of /bin/true like this. I am still convinced that always doing the fsck for the root fs in systemd-fsck-root.service is the right way to go, even if the this means more parallelization than strictly necessary for a few setups in the initrd. Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel