chiark / gitweb /
units: Add support for automounting configfs, ala debugfs, etc.
[elogind.git] / units / var-lock.mount
index f14ea94d0436d4550a7cba7d90d184aae92e0ab2..80e1bab2618fe62872d51c7c47c8016b10813fd2 100644 (file)
@@ -8,9 +8,11 @@
 [Unit]
 Description=Lock Directory
 Before=local-fs.target
 [Unit]
 Description=Lock Directory
 Before=local-fs.target
+# skip mounting if the directory does not exist or is a symlink
+ConditionPathIsDirectory=/var/lock
 
 [Mount]
 
 [Mount]
-What=tmpfs
+What=/run/lock
 Where=/var/lock
 Where=/var/lock
-Type=tmpfs
-Options=mode=775,gid=lock
+Type=bind
+Options=bind