[Pkg-sysvinit-devel] Bug#546405: new sysv-rc.postinst code to clear /var/lib/update-rc.d on upgrades fails with exit status 1
Felix Zielcke
fzielcke at z-51.de
Sun Sep 13 06:06:28 UTC 2009
Package: sysv-rc
Version: 2.87dsf-5
Severity: important
Tags: patch
Postinst from sysv-rc exists for me with status code 1
Last output with set -x is:
+ dpkg --compare-versions 2.87dsf-4 lt 2.87dsf-5
+ grep -l remove$ /var/lib/update-rc.d/fuse /var/lib/update-rc.d/winbind
+ removedfiles=
dpkg: error processing sysv-rc (--configure):
subprocess installed post-installation script returned error exit status 1
I don't know why setting a variable to an empty string, is considered an error with set -e
but that patch fixes it for me:
--- sysv-rc.postinst.old 2009-09-13 08:01:40.813301643 +0200
+++ sysv-rc.postinst 2009-09-13 07:54:13.528534740 +0200
@@ -182,7 +182,7 @@
fi
fi
if dpkg --compare-versions "$2" lt 2.87dsf-5 ; then
- removedfiles=$(grep -l 'remove$' /var/lib/update-rc.d/*)
+ removedfiles=$(grep -l 'remove$' /var/lib/update-rc.d/*) || true
if [ "$removedfiles" ] ; then
rm $removedfiles
fi
-- System Information:
Debian Release: squeeze/sid
APT prefers experimental
APT policy: (500, 'experimental'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages sysv-rc depends on:
ii debconf [debconf-2.0] 1.5.27 Debian configuration management sy
ii insserv 1.12.0-11 Tool to organize boot sequence usi
ii sysvinit-utils 2.87dsf-4 System-V-like utilities
Versions of packages sysv-rc recommends:
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip
Versions of packages sysv-rc suggests:
pn bum <none> (no description available)
pn sysv-rc-conf <none> (no description available)
-- debconf information:
sysv-rc/unable-to-convert:
* sysv-rc/convert-legacy: false
More information about the Pkg-sysvinit-devel
mailing list