[Pkg-sysvinit-devel] Bug#676473: sysv-rc: give more information on left-behind init.d script while trying to migrate
Stephan Springl
debian-sysvrc at springl.homeip.net
Thu Jun 7 08:07:01 UTC 2012
Package: sysv-rc
Version: 2.88dsf-26
Severity: wishlist
Tags: patch
Dear Maintainer,
my system has been running debian for about ten years now. Once in a time,
I try to resolve a few issues preventing my system to be migrated to
dependency based boot. Today, I looked at the suggestion
dpkg --purge initscripts initscripts initscripts lm-sensors
which is not something I wanted to do. Package initscripts has 24
non-obsolete and three obsolete init.d scripts. Trying to figure out
which script to delete manually, it would be really helpful if
sysv-rc.postinst reported the exact filename. I used the attached
patch to get this behaviour. Please apply if you consider it reasonable.
Regards
Stephan
diff --git a/debian/sysv-rc.postinst b/debian/sysv-rc.postinst
index 757c85e..48fdbba 100644
--- a/debian/sysv-rc.postinst
+++ b/debian/sysv-rc.postinst
@@ -85,7 +85,7 @@ is_unsafe_to_activate() {
for initscript in $obsolete_initscripts; do
if [ -e "$initscript" ]; then
retval=0
- add_problematic "package $package left obsolete init.d script behind"
+ add_problematic "package $package left obsolete init.d script $initscript behind"
add_suggestion "$package"
fi
done
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 3.3.0-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages sysv-rc depends on:
ii debconf [debconf-2.0] 1.5.43
ii insserv 1.14.0-3
ii sysvinit-utils 2.88dsf-26
Versions of packages sysv-rc recommends:
ii lsb-base 4.1+Debian6
Versions of packages sysv-rc suggests:
ii bum <none>
ii sysv-rc-conf 0.99-7
-- debconf information:
* sysv-rc/unable-to-convert:
sysv-rc/convert-legacy: true
More information about the Pkg-sysvinit-devel
mailing list