[Pkg-sysvinit-commits] r1907 - sysvinit/trunk/debian
Petter Reinholdtsen
pere at alioth.debian.org
Sat May 29 18:07:19 UTC 2010
Author: pere
Date: 2010-05-29 18:07:18 +0000 (Sat, 29 May 2010)
New Revision: 1907
Modified:
sysvinit/trunk/debian/changelog
sysvinit/trunk/debian/sysv-rc.postinst
Log:
Add workaround in sysv-rc.postinst for systems migrating from
file-rc to make sure their use of legacy boot ordering is detected
and handled (Closes: #575080).
Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog 2010-05-18 18:46:08 UTC (rev 1906)
+++ sysvinit/trunk/debian/changelog 2010-05-29 18:07:18 UTC (rev 1907)
@@ -13,6 +13,9 @@
Patch from Steve Langasek and Ubuntu.
* Print to the console how many seconds were spent running boot
scripts, to get more focus on boot speed while we prepare Squeeze.
+ * Add workaround in sysv-rc.postinst for systems migrating from
+ file-rc to make sure their use of legacy boot ordering is detected
+ and handled (Closes: #575080).
-- Petter Reinholdtsen <pere at debian.org> Sun, 16 May 2010 19:38:20 +0200
Modified: sysvinit/trunk/debian/sysv-rc.postinst
===================================================================
--- sysvinit/trunk/debian/sysv-rc.postinst 2010-05-18 18:46:08 UTC (rev 1906)
+++ sysvinit/trunk/debian/sysv-rc.postinst 2010-05-29 18:07:18 UTC (rev 1907)
@@ -172,6 +172,19 @@
fi
rm /var/run/sysv-rc.upgrade
fi
+
+ # Detect migrations away from file-rc, where the legacy boot
+ # ordering is used but the flag file to indicated legacy boot
+ # ordering is missing. Can not do this in preinst, as preinst
+ # might be executed before the postinst of file-rc creatingthe
+ # files in /etc/rc?.d/.
+ for f in /etc/rc0.d/S* ; do
+ if [ ! -f $flagfile ] && [ -f $f ] ; then
+ touch $flagfile
+ break
+ fi
+ done
+
if [ -f $flagfile ] ; then
# Still using legacy ordering, try to convert
if try_to_convert ; then
More information about the Pkg-sysvinit-commits
mailing list