From: Zbigniew Jędrzejewski-Szmek Date: Thu, 15 Aug 2013 19:07:57 +0000 (-0400) Subject: units: make fsck units remain after exit X-Git-Tag: v207~114 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=d0a2d726f0b6a02077c178d446f89839be474d41 units: make fsck units remain after exit Without this, fsck would be re-run if any other service which pulls in a target requiring one of the mounts was started after fsck was done but before the initial transaction was done. https://bugs.freedesktop.org/show_bug.cgi?id=66784 --- diff --git a/units/systemd-fsck-root.service.in b/units/systemd-fsck-root.service.in index 563129bad..438831407 100644 --- a/units/systemd-fsck-root.service.in +++ b/units/systemd-fsck-root.service.in @@ -7,7 +7,7 @@ [Unit] Description=File System Check on Root Device -Documentation=man:systemd-fsck@.service(8) +Documentation=man:systemd-fsck-root.service(8) DefaultDependencies=no After=systemd-readahead-collect.service systemd-readahead-replay.service Before=local-fs.target shutdown.target @@ -16,7 +16,7 @@ ConditionPathIsReadWrite=!/ [Service] Type=oneshot -RemainAfterExit=no +RemainAfterExit=yes ExecStart=@rootlibexecdir@/systemd-fsck StandardOutput=journal+console FsckPassNo=1 diff --git a/units/systemd-fsck@.service.in b/units/systemd-fsck@.service.in index b3c71eb25..e229cdcb8 100644 --- a/units/systemd-fsck@.service.in +++ b/units/systemd-fsck@.service.in @@ -15,7 +15,7 @@ Before=shutdown.target [Service] Type=oneshot -RemainAfterExit=no +RemainAfterExit=yes ExecStart=@rootlibexecdir@/systemd-fsck %f StandardOutput=journal+console TimeoutSec=0