initscripts: Mount /var/lock early in the boot process

This commit is contained in:
Michael Tremer
2014-08-24 16:02:06 +02:00
parent 3a7f46d377
commit 1f4b1f6ea9

View File

@@ -34,6 +34,11 @@ case "${1}" in
mount -n -t tmpfs -o nosuid,nodev,mode=755,size=8M /run /run || failed=1
fi
if ! mountpoint /var/lock &>/dev/null; then
boot_mesg -n " /var/lock" ${NORMAL}
mount -n -t tmpfs -o nosuid,nodev,size=8M /var/lock /var/lock || failed=1
fi
boot_mesg "" ${NORMAL}
(exit ${failed})