summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-09-21 01:29:38 +0200
committerMichal Schmidt <mschmidt@redhat.com>2011-09-21 01:42:02 +0200
commit0d60602c3b4d4b65da672d75c6146f2ea4b27f88 (patch)
tree9522f11f7c3258e930196f169f8c0a062da83a20 /units
parent8571962ca31a468959eedce26fda278587327ba5 (diff)
condition: add ConditionPathIsSymbolicLink
Diffstat (limited to 'units')
-rw-r--r--units/var-lock.mount1
-rw-r--r--units/var-run.mount1
2 files changed, 2 insertions, 0 deletions
diff --git a/units/var-lock.mount b/units/var-lock.mount
index 80e1bab261..07277adac3 100644
--- a/units/var-lock.mount
+++ b/units/var-lock.mount
@@ -10,6 +10,7 @@ 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]
What=/run/lock
diff --git a/units/var-run.mount b/units/var-run.mount
index c513dfecd2..ab4da424c9 100644
--- a/units/var-run.mount
+++ b/units/var-run.mount
@@ -10,6 +10,7 @@ Description=Runtime Directory
Before=local-fs.target
# skip mounting if the directory does not exist or is a symlink
ConditionPathIsDirectory=/var/run
+ConditionPathIsSymbolicLink=!/var/run
[Mount]
What=/run