[Pkg-sysvinit-commits] r846 - in sysvinit/trunk/debian: .
initscripts
Petter Reinholdtsen
pere at costa.debian.org
Wed Sep 6 08:21:49 UTC 2006
Author: pere
Date: 2006-09-06 08:21:49 +0000 (Wed, 06 Sep 2006)
New Revision: 846
Modified:
sysvinit/trunk/debian/changelog
sysvinit/trunk/debian/initscripts/postinst
Log:
Move hostname.sh, and make sure it take effect. Do the same for mtab.sh.
Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog 2006-09-06 08:07:31 UTC (rev 845)
+++ sysvinit/trunk/debian/changelog 2006-09-06 08:21:49 UTC (rev 846)
@@ -50,6 +50,8 @@
Only enable this feature when /etc/update-rc.d-lsbparse exist
while we verify that LSB headers are correct.
* Change the default VERBOSE value from yes to no.
+ * Move init.d/hostname.sh to the very top of the boot sequence,
+ as it only require a readable /etc/hostname and a working kernel.
-- Petter Reinholdtsen <pere at debian.org> Wed, 26 Jul 2006 11:37:23 +0200
Modified: sysvinit/trunk/debian/initscripts/postinst
===================================================================
--- sysvinit/trunk/debian/initscripts/postinst 2006-09-06 08:07:31 UTC (rev 845)
+++ sysvinit/trunk/debian/initscripts/postinst 2006-09-06 08:21:49 UTC (rev 846)
@@ -85,6 +85,13 @@
update-rc.d -f single remove >/dev/null 2>&1 || :
fi
+# In 2.86.ds1-16, the mtab.sh and hostname.sh scripts were moved.
+if dpkg --compare-versions "$PREV_VER" lt "2.86.ds1-16"
+then
+ update-rc.d -f mtab.sh remove >/dev/null 2>&1 || :
+ update-rc.d -f hostname.sh remove >/dev/null 2>&1 || :
+fi
+
#
# Okay, we could do this with update-rc.d, but that would probably
# be pretty slow. This way we win some speed.
@@ -93,6 +100,7 @@
# Links in runlevel S
#
updatercd mountkernfs.sh start 2 S .
+updatercd hostname.sh start 2 S .
updatercd mountdevsubfs.sh start 4 S .
updatercd bootlogd start 5 S .
updatercd checkroot.sh start 10 S .
@@ -102,7 +110,6 @@
updatercd checkfs.sh start 30 S .
updatercd mountall.sh start 35 S .
updatercd mountall-bootclean.sh start 36 S .
-updatercd hostname.sh start 40 S .
updatercd mountnfs.sh start 45 S .
updatercd mountnfs-bootclean.sh start 46 S .
updatercd bootmisc.sh start 55 S .
More information about the Pkg-sysvinit-commits
mailing list