[Pkg-sysvinit-commits] r948 - in sysvinit/trunk/debian: .
initscripts/etc/init.d
Petter Reinholdtsen
pere at costa.debian.org
Wed Sep 20 11:46:05 UTC 2006
Author: pere
Date: 2006-09-20 11:46:05 +0000 (Wed, 20 Sep 2006)
New Revision: 948
Modified:
sysvinit/trunk/debian/changelog
sysvinit/trunk/debian/initscripts/etc/init.d/mountkernfs.sh
Log:
Create .ramfs files in /var/run/ and /var/lock/ if tmpfs is used to make it
easier for other scripts to know if they are safe to use early in the boot.
Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog 2006-09-20 11:36:02 UTC (rev 947)
+++ sysvinit/trunk/debian/changelog 2006-09-20 11:46:05 UTC (rev 948)
@@ -5,6 +5,9 @@
Remove code to convert to this feature when the package is
upgraded or installed. It will take effect after a reboot if
/etc/default/rcS is modified. Keep them disabled for now.
+ Create .ramfs files in the directories if tmpfs is used to make it
+ easier for other scripts to know if they are safe to use early in
+ the boot.
* Create /lib/init/rw/, and mount a tmpfs there to garantee some
writable area very early in the boot. Use this in checkroot.sh if
a device node need to be created.
Modified: sysvinit/trunk/debian/initscripts/etc/init.d/mountkernfs.sh
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/mountkernfs.sh 2006-09-20 11:36:02 UTC (rev 947)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/mountkernfs.sh 2006-09-20 11:46:05 UTC (rev 948)
@@ -35,9 +35,11 @@
# Mount /var/run and /var/lock as tmpfs if enabled
if [ yes = "$RAMRUN" ] ; then
domount tmpfs "" /var/run varrun -omode=0755,nosuid
+ touch /var/run/.ramfs
fi
if [ yes = "$RAMLOCK ] ; then
domount tmpfs "" /var/lock varlock -omode=1777,nodev,noexec,nosuid
+ touch /var/lock/.ramfs
fi
# Get some writable area available before the root is checked
More information about the Pkg-sysvinit-commits
mailing list