chiark / gitweb /
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 6ca057ec67127f5f742710d84b7e3a511c35a12c..52a70743bc2a60e3d181460a26f5aefdc91802da 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 d1eba4b17e4ee048c82aa5538053bd2647f7b723..60ff9c3f42f7aa8f284601aee9ab02bac0834c72 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