[systemd-devel] [PATCH 0/3] avoid running fsck twice

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sat May 2 10:16:56 PDT 2015


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 systemd-fsck at .service 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



More information about the systemd-devel mailing list