[Pkg-sysvinit-commits] r980 - in sysvinit/trunk/debian: . initscripts

Petter Reinholdtsen pere at costa.debian.org
Thu Sep 28 18:36:12 UTC 2006


Author: pere
Date: 2006-09-28 18:36:11 +0000 (Thu, 28 Sep 2006)
New Revision: 980

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/initscripts/postinst
Log:
  * Make sure to mount /lib/init/rw/ during upgrades if it isn't mounted
    already, to make it sure available for its when a new initscripts
    package is installed

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2006-09-28 17:57:08 UTC (rev 979)
+++ sysvinit/trunk/debian/changelog	2006-09-28 18:36:11 UTC (rev 980)
@@ -1,3 +1,11 @@
+sysvinit (2.86.ds1-27~1) unstable; urgency=low
+
+  * Make sure to mount /lib/init/rw/ during upgrades if it isn't mounted
+    already, to make it sure available for its when a new initscripts
+    package is installed
+
+ -- Petter Reinholdtsen <pere at debian.org>  Thu, 28 Sep 2006 20:30:41 +0200
+
 sysvinit (2.86.ds1-26) unstable; urgency=low
 
   * Change umountnfs to use /etc/mtab instead of /proc/mounts, to make

Modified: sysvinit/trunk/debian/initscripts/postinst
===================================================================
--- sysvinit/trunk/debian/initscripts/postinst	2006-09-28 17:57:08 UTC (rev 979)
+++ sysvinit/trunk/debian/initscripts/postinst	2006-09-28 18:36:11 UTC (rev 980)
@@ -170,6 +170,16 @@
 	rmdir /.root
 fi
 
+if dpkg --compare-versions "$PREV_VER" lt "2.86.ds1-27" \
+   && [ ! -f /lib/init/rw/.ramfs ] ; then
+	[ -f /etc/default/tmpfs ] && . /etc/default/tmpfs
+
+	RW_OPT=
+	[ "${RW_SIZE:=$TMPFS_SIZE}" ] && RW_OPT=",size=$RW_SIZE"
+	mount -t tmpfs tmpfs /lib/init/rw -omode=0755,nosuid$RW_OPT
+	touch /lib/init/rw/.ramfs
+fi
+
 #
 # Create initial log files
 #




More information about the Pkg-sysvinit-commits mailing list