chiark / gitweb /
units: Add support for automounting configfs, ala debugfs, etc.
[elogind.git] / units / var-lock.mount
index dbfee59a7a960aecb146090fcc82b6dbd7db84a7..80e1bab2618fe62872d51c7c47c8016b10813fd2 100644 (file)
@@ -8,8 +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
+Type=bind
+Options=bind