units: remount file systems only if /etc/fstab actually exists
authorLennart Poettering <lennart@poettering.net>
Sun, 22 Apr 2012 13:35:35 +0000 (15:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 22 Apr 2012 13:35:35 +0000 (15:35 +0200)
units/remount-rootfs.service
units/systemd-remount-api-vfs.service.in

index 6ca057e..52a7074 100644 (file)
@@ -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
index d1eba4b..60ff9c3 100644 (file)
@@ -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