Limit /run to 8M.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Jan 2014 22:02:00 +0000 (23:02 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Jan 2014 22:02:00 +0000 (23:02 +0100)
src/initscripts/init.d/mountkernfs

index 37e66d8..f7be82d 100644 (file)
@@ -31,7 +31,7 @@ case "${1}" in
 
                if ! mountpoint /run &> /dev/null; then
                        boot_mesg -n " /run" ${NORMAL}
-                       mount -n -t tmpfs -o nosuid,nodev,mode=755 /run /run || failed=1
+                       mount -n -t tmpfs -o nosuid,nodev,mode=755,size=8M /run /run || failed=1
                fi
 
                boot_mesg "" ${NORMAL}