summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--units/remount-rootfs.service1
-rw-r--r--units/systemd-remount-api-vfs.service.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/units/remount-rootfs.service b/units/remount-rootfs.service
index 6ca057ec67..52a70743bc 100644
--- a/units/remount-rootfs.service
+++ b/units/remount-rootfs.service
@@ -12,6 +12,7 @@ Conflicts=shutdown.target
After=systemd-readahead-collect.service systemd-readahead-replay.service fsck-root.service
Before=local-fs-pre.target local-fs.target shutdown.target
Wants=local-fs-pre.target
+ConditionPathExists=/etc/fstab
[Service]
Type=oneshot
diff --git a/units/systemd-remount-api-vfs.service.in b/units/systemd-remount-api-vfs.service.in
index d1eba4b17e..60ff9c3f42 100644
--- a/units/systemd-remount-api-vfs.service.in
+++ b/units/systemd-remount-api-vfs.service.in
@@ -12,6 +12,7 @@ Conflicts=shutdown.target
After=systemd-readahead-collect.service systemd-readahead-replay.service
Before=local-fs-pre.target local-fs.target shutdown.target
Wants=local-fs-pre.target
+ConditionPathExists=/etc/fstab
[Service]
Type=oneshot