]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
initscripts: Mount /var/lock early in the boot process
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 24 Aug 2014 14:02:06 +0000 (16:02 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 24 Aug 2014 14:02:06 +0000 (16:02 +0200)
src/initscripts/init.d/mountkernfs

index f7be82d01e5097e158a8cf032743f756d196ebdc..05e8eb67aa6e46f52f8fb1de1feb6106b50e6d1f 100644 (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})