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=90dfe0edaa0a1c0327efa63cf70e6a0c2fddc1fe;hb=57020a3abff20f176e9f0cbb982d7977119d6f08;hpb=322198005ace1aca0d504726f2444c84bd8b5430 diff --git a/units/var-run.mount b/units/var-run.mount index 90dfe0eda..ab4da424c 100644 --- a/units/var-run.mount +++ b/units/var-run.mount @@ -8,12 +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 -Options=mode=755 - -[Install] -WantedBy=local-fs.target +Type=bind +Options=bind