|
Harald Hoyer |
fe20ad |
From ac2279a50aee4c8c5fabb645d185ad6c9e61d553 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
fe20ad |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Harald Hoyer |
fe20ad |
Date: Thu, 15 Aug 2013 15:07:57 -0400
|
|
Harald Hoyer |
fe20ad |
Subject: [PATCH] units: make fsck units remain after exit
|
|
Harald Hoyer |
fe20ad |
|
|
Harald Hoyer |
fe20ad |
Without this, fsck would be re-run if any other service which pulls
|
|
Harald Hoyer |
fe20ad |
in a target requiring one of the mounts was started after fsck was done
|
|
Harald Hoyer |
fe20ad |
but before the initial transaction was done.
|
|
Harald Hoyer |
fe20ad |
|
|
Harald Hoyer |
fe20ad |
https://bugs.freedesktop.org/show_bug.cgi?id=66784
|
|
Harald Hoyer |
fe20ad |
---
|
|
Harald Hoyer |
fe20ad |
units/systemd-fsck-root.service.in | 4 ++--
|
|
Harald Hoyer |
fe20ad |
units/systemd-fsck@.service.in | 2 +-
|
|
Harald Hoyer |
fe20ad |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
Harald Hoyer |
fe20ad |
|
|
Harald Hoyer |
fe20ad |
diff --git a/units/systemd-fsck-root.service.in b/units/systemd-fsck-root.service.in
|
|
Harald Hoyer |
fe20ad |
index 563129b..4388314 100644
|
|
Harald Hoyer |
fe20ad |
--- a/units/systemd-fsck-root.service.in
|
|
Harald Hoyer |
fe20ad |
+++ b/units/systemd-fsck-root.service.in
|
|
Harald Hoyer |
fe20ad |
@@ -7,7 +7,7 @@
|
|
Harald Hoyer |
fe20ad |
|
|
Harald Hoyer |
fe20ad |
[Unit]
|
|
Harald Hoyer |
fe20ad |
Description=File System Check on Root Device
|
|
Harald Hoyer |
fe20ad |
-Documentation=man:systemd-fsck@.service(8)
|
|
Harald Hoyer |
fe20ad |
+Documentation=man:systemd-fsck-root.service(8)
|
|
Harald Hoyer |
fe20ad |
DefaultDependencies=no
|
|
Harald Hoyer |
fe20ad |
After=systemd-readahead-collect.service systemd-readahead-replay.service
|
|
Harald Hoyer |
fe20ad |
Before=local-fs.target shutdown.target
|
|
Harald Hoyer |
fe20ad |
@@ -16,7 +16,7 @@ ConditionPathIsReadWrite=!/
|
|
Harald Hoyer |
fe20ad |
|
|
Harald Hoyer |
fe20ad |
[Service]
|
|
Harald Hoyer |
fe20ad |
Type=oneshot
|
|
Harald Hoyer |
fe20ad |
-RemainAfterExit=no
|
|
Harald Hoyer |
fe20ad |
+RemainAfterExit=yes
|
|
Harald Hoyer |
fe20ad |
ExecStart=@rootlibexecdir@/systemd-fsck
|
|
Harald Hoyer |
fe20ad |
StandardOutput=journal+console
|
|
Harald Hoyer |
fe20ad |
FsckPassNo=1
|
|
Harald Hoyer |
fe20ad |
diff --git a/units/systemd-fsck@.service.in b/units/systemd-fsck@.service.in
|
|
Harald Hoyer |
fe20ad |
index b3c71eb..e229cdc 100644
|
|
Harald Hoyer |
fe20ad |
--- a/units/systemd-fsck@.service.in
|
|
Harald Hoyer |
fe20ad |
+++ b/units/systemd-fsck@.service.in
|
|
Harald Hoyer |
fe20ad |
@@ -15,7 +15,7 @@ Before=shutdown.target
|
|
Harald Hoyer |
fe20ad |
|
|
Harald Hoyer |
fe20ad |
[Service]
|
|
Harald Hoyer |
fe20ad |
Type=oneshot
|
|
Harald Hoyer |
fe20ad |
-RemainAfterExit=no
|
|
Harald Hoyer |
fe20ad |
+RemainAfterExit=yes
|
|
Harald Hoyer |
fe20ad |
ExecStart=@rootlibexecdir@/systemd-fsck %f
|
|
Harald Hoyer |
fe20ad |
StandardOutput=journal+console
|
|
Harald Hoyer |
fe20ad |
TimeoutSec=0
|