summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-14 11:42:47 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-14 11:42:47 +0100
commit7a57b332d0a0b229c1c24278840aebd19efe9ffe (patch)
treeec5936ffac223e336a7b4d8721ebfe732f601b3f /units
parentcfdc0c8941f25ab08140d56f773105228e459ac5 (diff)
fsck: skip root fsck if dracut already did it
Diffstat (limited to 'units')
-rw-r--r--units/fsck-root.service.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/units/fsck-root.service.in b/units/fsck-root.service.in
index 2f89d0e63b..cb654260c0 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