chiark / gitweb /
use /run instead of /dev/.run
[elogind.git] / units / var-lock.mount
index 0ea2599b71793a24d3f65347a0b3c4a58d22b7c1..80e1bab2618fe62872d51c7c47c8016b10813fd2 100644 (file)
@@ -8,9 +8,11 @@
 [Unit]
 Description=Lock Directory
 Before=local-fs.target
+# skip mounting if the directory does not exist or is a symlink
+ConditionPathIsDirectory=/var/lock
 
 [Mount]
-What=tmpfs
+What=/run/lock
 Where=/var/lock
-Type=tmpfs
-Options=mode=775,gid=lock,nosuid,nodev,noexec
+Type=bind
+Options=bind