Bug#386661: [Pkg-sysvinit-devel] Bug#386661: sysv-rc: Quick way out: exim4 -> exim?

Petter Reinholdtsen pere at hungry.com
Sat Sep 9 08:57:26 UTC 2006


[Olaf van der Spek]
> The quick way out fix doesn't appear to be safe. :(

Yes.  Terribly sorry I did not discover its problem with removed but
not purged packages before uploading it.  This script is safer:


    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

You might also want to use /var/log/dpkg.log to find out which
packages were upgraded in the dangerous period.  This script fragment
should give you the list of upgraded and installed period while
update-rc.d was broken.

  sed -n "/installed sysvinit 2.86.ds1-16/,/installed sysvinit 2.86.ds1-18/p" /var/log/dpkg.log |
       awk '/ upgrade / { print $4 } / installed / { print $5 }' | sort -u

Friendly,
-- 
Petter Reinholdtsen




More information about the Pkg-sysvinit-devel mailing list