summaryrefslogtreecommitdiff
path: root/units/var-lock.mount
diff options
context:
space:
mode:
Diffstat (limited to 'units/var-lock.mount')
-rw-r--r--units/var-lock.mount8
1 files changed, 5 insertions, 3 deletions
diff --git a/units/var-lock.mount b/units/var-lock.mount
index 0ea2599b71..80e1bab261 100644
--- a/units/var-lock.mount
+++ b/units/var-lock.mount
@@ -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