X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Fvar-run.mount;h=ab4da424c966e99a6ee521f36c1c7b0d44cc6e47;hb=8185a5090a34531b9ef0a65ed3e948e7b6839754;hp=90dfe0edaa0a1c0327efa63cf70e6a0c2fddc1fe;hpb=bb4f237c651623ca2b523fb3ac14268fac9bb487;p=elogind.git 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