X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fvar-run.mount;h=ab4da424c966e99a6ee521f36c1c7b0d44cc6e47;hp=cd3889ebcedef2d28cba23ed4aa7128f318f64c6;hb=d418f857f87f3f381f52f6ee17f2fad6e36aca86;hpb=cc5524ecc60a83fb88cac02fe02e21cde3951a25 diff --git a/units/var-run.mount b/units/var-run.mount index cd3889ebc..ab4da424c 100644 --- a/units/var-run.mount +++ b/units/var-run.mount @@ -8,9 +8,12 @@ [Unit] 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=/dev/.run +What=/run Where=/var/run Type=bind Options=bind