chiark / gitweb /
units: In MeeGo there was more than one ExecStart lines present that caused systemd...
[elogind.git] / units / var-lock.mount
index f14ea94..07277ad 100644 (file)
@@ -8,9 +8,12 @@
 [Unit]
 Description=Lock Directory
 Before=local-fs.target
+# skip mounting if the directory does not exist or is a symlink
+ConditionPathIsDirectory=/var/lock
+ConditionPathIsSymbolicLink=!/var/lock
 
 [Mount]
-What=tmpfs
+What=/run/lock
 Where=/var/lock
-Type=tmpfs
-Options=mode=775,gid=lock
+Type=bind
+Options=bind