This is an attempt to fix the issue with fsck running twice. Patch 3/3 is the only important one, the other two are nice-to-have.
dracut configuration also has to be modified to include /bin/touch. I'll work on a patch for that later. I also tried the approach listed in TODO: generate systemd-fskc-root.service in the initramfs. The problem is that [email protected] has a dependency After=systemd-fsck-root, which is wrong in the initramfs, because other file systems might be stacked below sysroot. The solution in this patch is also much simpler. Zbigniew Jędrzejewski-Szmek (3): generators: rename add_{root,usr}_mount to add_{sysroot,sysroot_usr}_mount Allow $SYSTEMD_PRETEND_INITRD to override initramfs detection Use a stamp file to avoid running systemd-fsck-root.service twice src/fstab-generator/fstab-generator.c | 21 +++++++++++++-------- src/shared/generator.c | 28 +++++++++++++++++++--------- src/shared/generator.h | 17 +++++++++++++---- src/shared/util.c | 18 ++++++++++++------ units/systemd-fsck-root.service.in | 1 + 5 files changed, 58 insertions(+), 27 deletions(-) -- 2.3.5 _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
