summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rw-r--r--units/fsck-root.service.in3
2 files changed, 5 insertions, 0 deletions
diff --git a/TODO b/TODO
index f7269f194c..5ec7487e47 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 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