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=c082507b1ae28d24fe4d689ad472533b7928a887;hb=d418f857f87f3f381f52f6ee17f2fad6e36aca86;hpb=3d88bf660dae270c051c8319bba62c58a50c9d2b diff --git a/units/var-run.mount b/units/var-run.mount index c082507b1..ab4da424c 100644 --- a/units/var-run.mount +++ b/units/var-run.mount @@ -8,11 +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=tmpfs +What=/run Where=/var/run -Type=tmpfs - -[Install] -WantedBy=local-fs.target +Type=bind +Options=bind