X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fvar-lock.mount;h=80e1bab2618fe62872d51c7c47c8016b10813fd2;hp=a7668da8bd39b3fc412d4505e8c5c3f278463c50;hb=7948c4dfbea73ac21250b588089039aa17a90386;hpb=3d88bf660dae270c051c8319bba62c58a50c9d2b diff --git a/units/var-lock.mount b/units/var-lock.mount index a7668da8b..80e1bab26 100644 --- a/units/var-lock.mount +++ b/units/var-lock.mount @@ -8,11 +8,11 @@ [Unit] Description=Lock Directory Before=local-fs.target +# skip mounting if the directory does not exist or is a symlink +ConditionPathIsDirectory=/var/lock [Mount] -What=tmpfs +What=/run/lock Where=/var/lock -Type=tmpfs - -[Install] -WantedBy=local-fs.target +Type=bind +Options=bind