[Pkg-sysvinit-commits] r972 - sysvinit/trunk/debian/initscripts/etc/init.d

Petter Reinholdtsen pere at costa.debian.org
Mon Sep 25 08:58:34 UTC 2006


Author: pere
Date: 2006-09-25 08:58:33 +0000 (Mon, 25 Sep 2006)
New Revision: 972

Modified:
   sysvinit/trunk/debian/initscripts/etc/init.d/mtab.sh
Log:
Include the size option in the mtab as well.

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/mtab.sh
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/mtab.sh	2006-09-25 08:47:17 UTC (rev 971)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/mtab.sh	2006-09-25 08:58:33 UTC (rev 972)
@@ -111,17 +111,24 @@
 	fi
 
 	# S02mountkernfs.sh
-	domtab tmpfs /lib/init/rw tmpfs -omode=0755,nosuid
+	RW_OPT=
+	[ "${RW_SIZE:=$TMPFS_SIZE}" ] && RW_OPT=",size=$RW_SIZE"
+	domtab tmpfs /lib/init/rw tmpfs -omode=0755,nosuid$RW_OPT
+
 	domtab proc /proc "proc" -onodev,noexec,nosuid
 	if grep -E -qs "sysfs\$" /proc/filesystems
 	then
 		domtab sysfs /sys sysfs -onodev,noexec,nosuid
 	fi
 	if [ yes = "$RAMRUN" ] ; then
-		domtab tmpfs /var/run "varrun" -omode=0755,nosuid
+		RUN_OPT=
+		[ "${RUN_SIZE:=$TMPFS_SIZE}" ] && RUN_OPT=",size=$RUN_SIZE"
+		domtab tmpfs /var/run "varrun" -omode=0755,nosuid$RUN_OPT
 	fi
 	if [ yes = "$RAMLOCK" ] ; then
-		domtab tmpfs /var/lock "varlock" -omode=1777,nodev,noexec,nosuid
+		LOCK_OPT=
+		[ "${LOCK_SIZE:=$TMPFS_SIZE}" ] && LOCK_OPT=",size=$LOCK_SIZE"
+		domtab tmpfs /var/lock "varlock" -omode=1777,nodev,noexec,nosuid$LOCK_OPT
 	fi
 	if [ -d /proc/bus/usb ]
 	then




More information about the Pkg-sysvinit-commits mailing list