[systemd-commits] TODO units/fsck-root.service.in
Lennart Poettering
lennart at kemper.freedesktop.org
Mon Feb 14 03:07:44 PST 2011
TODO | 2 ++
units/fsck-root.service.in | 3 +++
2 files changed, 5 insertions(+)
New commits:
commit 7a57b332d0a0b229c1c24278840aebd19efe9ffe
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 14 11:42:47 2011 +0100
fsck: skip root fsck if dracut already did it
diff --git a/TODO b/TODO
index f7269f1..5ec7487 100644
--- a/TODO
+++ b/TODO
@@ -7,6 +7,8 @@ Bugs:
* fsck.btrfs non-existance should not cause mounting to fail
+* single user service needs to be masked?
+
Features:
* Maybe store in unit files whether a service should be enabled by default on package installation
diff --git a/units/fsck-root.service.in b/units/fsck-root.service.in
index 2f89d0e..cb65426 100644
--- a/units/fsck-root.service.in
+++ b/units/fsck-root.service.in
@@ -11,6 +11,9 @@ DefaultDependencies=no
After=systemd-readahead-collect.service systemd-readahead-replay.service
Before=local-fs.target shutdown.target remount-rootfs.service quotacheck.service
+# Dracut informs us with this flag file if the root fsck was already run
+ConditionPathExists=!/dev/.initramfs/fsck
+
[Service]
Type=oneshot
RemainAfterExit=no
More information about the systemd-commits
mailing list