[Pkg-sysvinit-commits] r964 - in sysvinit/trunk/debian: . initscripts/etc/init.d

Petter Reinholdtsen pere at costa.debian.org
Sat Sep 23 13:36:07 UTC 2006


Author: pere
Date: 2006-09-23 13:36:04 +0000 (Sat, 23 Sep 2006)
New Revision: 964

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/initscripts/etc/init.d/mountkernfs.sh
Log:
  * Add defaults/tmpfs option RW_SIZE to control the size of
    /lib/init/rw/, and change mountkernfs.sh to use TMPFS_SIZE too if
    it is set.

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2006-09-23 12:08:00 UTC (rev 963)
+++ sysvinit/trunk/debian/changelog	2006-09-23 13:36:04 UTC (rev 964)
@@ -5,6 +5,9 @@
   * Correct mtab entry for /sys, to make sure its 'device' is sysfs.
   * Include vars.sh in mtab.sh, to make sure the RAMRUN and RAMLOCK
     options are available when used.
+  * Add defaults/tmpfs option RW_SIZE to control the size of
+    /lib/init/rw/, and change mountkernfs.sh to use TMPFS_SIZE too if
+    it is set.
 
  -- Petter Reinholdtsen <pere at localhost>  Fri, 22 Sep 2006 23:26:33 +0200
 

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/mountkernfs.sh
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/mountkernfs.sh	2006-09-23 12:08:00 UTC (rev 963)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/mountkernfs.sh	2006-09-23 13:36:04 UTC (rev 964)
@@ -17,12 +17,16 @@
 . /lib/lsb/init-functions
 . /lib/init/mount-functions.sh
 
+[ -f /etc/default/tmpfs ] && . /etc/default/tmpfs
+
 do_start () {
 	#
 	# Get some writable area available before the root is checked
 	# and remounted.
 	#
-	domount tmpfs "" /lib/init/rw tmpfs -omode=0755,nosuid
+	RW_OPT=
+	[ "${RW_SIZE:=$TMPFS_SIZE}" ] && RW_OPT=",size=$RW_SIZE"
+	domount tmpfs "" /lib/init/rw tmpfs -omode=0755,nosuid$RW_OPT
 	touch /lib/init/rw/.ramfs
 
 	#




More information about the Pkg-sysvinit-commits mailing list