[Initscripts-ng-commits] r344 - /trunk/src/insserv/debian/update-bootsystem-insserv

pere at users.alioth.debian.org pere at users.alioth.debian.org
Sun Dec 30 12:36:20 UTC 2007


Author: pere
Date: Sun Dec 30 12:36:20 2007
New Revision: 344

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=344
Log:
Make recovery even more robust and less noisy.

Modified:
    trunk/src/insserv/debian/update-bootsystem-insserv

Modified: trunk/src/insserv/debian/update-bootsystem-insserv
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/update-bootsystem-insserv?rev=344&op=diff
==============================================================================
--- trunk/src/insserv/debian/update-bootsystem-insserv (original)
+++ trunk/src/insserv/debian/update-bootsystem-insserv Sun Dec 30 12:36:20 2007
@@ -30,7 +30,7 @@
 # Recreate sysv boot sequence by calling the postinst for all packages
 # with init.d scripts, to get them to call update-rc.d again.
 regenerate_sysv_sequence() {
-    packages="`dpkg -S /etc/init.d/*|cut -d: -f1|sort -u`"
+    packages="`dpkg -S /etc/init.d/* 2>/dev/null | cut -d: -f1|sort -u`"
 
     for p in $packages ; do
         # Make sure it is installed
@@ -50,7 +50,7 @@
     for p in $brokenpackages ; do
 	echo "Running package $p postinst"
 	DEBCONF_FRONTEND=noninteractive	\
-	    /var/lib/dpkg/info/$p.postinst configure
+	    /var/lib/dpkg/info/$p.postinst configure || true
     done
 }
 




More information about the Initscripts-ng-commits mailing list