[Pkg-sysvinit-commits] r1025 - in sysvinit/trunk/debian: . sysv-rc/doc

Petter Reinholdtsen pere at costa.debian.org
Sat Oct 21 10:34:22 CEST 2006


Author: pere
Date: 2006-10-21 08:34:22 +0000 (Sat, 21 Oct 2006)
New Revision: 1025

Removed:
   sysvinit/trunk/debian/sysv-rc/doc/update-rc.d-recover
Modified:
   sysvinit/trunk/debian/NEWS
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/rules
Log:
  * Remove NEWS entries explaining how to recover from the version of
    sysv-rc present 6th to 8th of September in unstable.  Remove
    update-rc.d-recover as it should no longer be needed. (Closes:
    #394332)

Modified: sysvinit/trunk/debian/NEWS
===================================================================
--- sysvinit/trunk/debian/NEWS	2006-10-21 07:52:33 UTC (rev 1024)
+++ sysvinit/trunk/debian/NEWS	2006-10-21 08:34:22 UTC (rev 1025)
@@ -1,55 +1,3 @@
-sysvinit (2.86.ds1-19) unstable; urgency=low
-
-  The script proposed below is dangerous, as it had a problem with
-  removed but not purged packages.  If such packages had files in
-  /etc/init.d/, it could end up trying to remove quite a lot of
-  packages.  This version check to make sure the package is installed
-  before trying to reinstall it, as well as making sure the admin is
-  asked for every package.
-
-    for p in `dpkg -S /etc/init.d/*|cut -d: -f1|sort -u`; do
-      if dpkg --get-selections $p | grep -qw install ; then
-        echo reinstalling $p
-        apt-get --reinstall install $p
-      fi
-    done
-
-  To avoid the question, add -y as an argument for apt-get.  An
-  alternative to reinstalling all these packages is to look in
-  /var/log/dpkg.log for the packages that was installed and upgraded
-  between sysv-rc version 2.86.ds1-16 and version 2.86.ds1-18, and
-  only reinstall these.  A script to do this and update the system is
-  provided in
-
-    /usr/share/doc/sysv-rc/update-rc.d-recover
-
-  Please use it to update your installation if you were upgrading from
-  one of the broken versions of sysv-rc.
-
- -- Petter Reinholdtsen <pere at debian.org>  Sat,  9 Sep 2006 20:12:47 +0200
-
-sysvinit (2.86.ds1-18) unstable; urgency=low
-
-  In version 2.86.ds1-16 of the sysv-rc package released 2006-09-06,
-  the update-rc.d script was broken.  When used to to update symlinks
-  it would remove all symlinks for a init.d script if such symlinks
-  existed, and add them if they were missing.  This broke all packages
-  being upgraded after the new version was installed, as their init.d
-  scripts will no longer be executed.  This problem was fixed in
-  version 2.86.ds1-18, but the broken packages will stay broken until
-  their postinst scripts are executed again.
-
-  Those with packages being broken from this bug can fix it by using
-  'apt-get --reinstall install package' on the affected packages.  A
-  quick way out is to reinstall all the packages with scripts in
-  /etc/init.d/.
-
-    for p in `dpkg -S /etc/init.d/*|cut -d: -f1|sort -u`; do
-      apt-get --reinstall install -y $p
-    done
-
- -- Petter Reinholdtsen <pere at debian.org>  Thu,  8 Sep 2006 15:40:50 +0200
-
 sysvinit (2.86.ds1-10) unstable; urgency=low
 
   In version 2.86.ds1-10 of the initscripts package the shell function

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2006-10-21 07:52:33 UTC (rev 1024)
+++ sysvinit/trunk/debian/changelog	2006-10-21 08:34:22 UTC (rev 1025)
@@ -11,6 +11,10 @@
     lockdir exist.
   * Add exit handler in if-up.d/mountnfs to make sure the lock directory
     is removed when the script is interrupted.
+  * Remove NEWS entries explaining how to recover from the version of
+    sysv-rc present 6th to 8th of September in unstable.  Remove
+    update-rc.d-recover as it should no longer be needed. (Closes:
+    #394332)
 
  -- Petter Reinholdtsen <pere at debian.org>  Thu, 19 Oct 2006 10:05:50 +0200
 

Modified: sysvinit/trunk/debian/rules
===================================================================
--- sysvinit/trunk/debian/rules	2006-10-21 07:52:33 UTC (rev 1024)
+++ sysvinit/trunk/debian/rules	2006-10-21 08:34:22 UTC (rev 1025)
@@ -247,7 +247,6 @@
 		> $(tmp)$(doc)/sysv-rc/changelog.Debian
 	chmod 644 $(tmp)$(doc)/sysv-rc/changelog.Debian
 	gzip -9f $(tmp)$(doc)/sysv-rc/*
-	gunzip $(tmp)$(doc)/sysv-rc/update-rc.d-recover.gz
 	install -d -o root -g root -m 755 $(tmp)/etc/rc{2,3,4,5}.d
 	cp -af debian/sysv-rc/etc/* $(tmp)/etc
 	for N in 2 3 4 5 ; do \

Deleted: sysvinit/trunk/debian/sysv-rc/doc/update-rc.d-recover
===================================================================
--- sysvinit/trunk/debian/sysv-rc/doc/update-rc.d-recover	2006-10-21 07:52:33 UTC (rev 1024)
+++ sysvinit/trunk/debian/sysv-rc/doc/update-rc.d-recover	2006-10-21 08:34:22 UTC (rev 1025)
@@ -1,39 +0,0 @@
-#!/bin/sh
-#
-# Author: Petter Reinholdtsen
-# Date:   2006-09-08
-#
-# This script was created to recover from a broken update-rc.d in
-# sysv-rc versions 2.86.ds1-16 and 2.86.ds1-17.
-
-# Set to true to bypass dpkg and run postinst directly.
-bypass=true
-
-if [ -f /var/log/dpkg.log ] ; then
-    packages="`sed -n "/installed sysvinit 2.86.ds1-1[67]/,/installed sysvinit 2.86.ds1-18/p" /var/log/dpkg.log | awk '/ upgrade / { print $4 } / installed / { print $5 }' | sort -u`"
-else
-    packages="`dpkg -S /etc/init.d/*|cut -d: -f1|sort -u`"
-fi
-
-for p in $packages ; do
-    # Make sure it is installed
-    if dpkg --get-selections $p | grep -qw install ; then
-	# Only fix packages with init.d scripts
-	if dpkg -L $p | grep -q /etc/init.d/ ; then
-	    brokenpackages="$brokenpackages $p"
-	fi
-    fi
-done
-
-if [ true = $bypass ] ; then
-    for p in $brokenpackages ; do
-	echo "Running package $p postinst"
-	/var/lib/dpkg/info/$p.postinst configure
-    done
-else
-    echo
-    echo "**** Reinstalling these packages ****"
-    echo "  $brokenpackages"
-    echo
-    apt-get --reinstall -u install $brokenpackages
-fi    




More information about the Pkg-sysvinit-commits mailing list