chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logind: move logind into its own subdirectory
[elogind.git]
/
units
/
var-lock.mount
diff --git
a/units/var-lock.mount
b/units/var-lock.mount
index 0ea2599b71793a24d3f65347a0b3c4a58d22b7c1..07277adac3a299cd80e30272daf437908b8effd4 100644
(file)
--- a/
units/var-lock.mount
+++ b/
units/var-lock.mount
@@
-8,9
+8,12
@@
[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
+ConditionPathIsSymbolicLink=!/var/lock
[Mount]
[Mount]
-What=
tmpfs
+What=
/run/lock
Where=/var/lock
Where=/var/lock
-Type=
tmpfs
-Options=
mode=775,gid=lock,nosuid,nodev,noexec
+Type=
bind
+Options=
bind