Source: debhelper
Version: 13.4+nmu1
Severity: normal
Tags: patch
User: debian-d...@lists.debian.org
Usertags: dpkg-root-support

Hi,

thanks a lot for fixing #983566! Unfortunately, it seems that the fix
applied DPKG_ROOT support to one place too many. With current debhelper,
the postinst of util-linux looks like this:

# Automatically added by dh_installinit/13.3.3
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = 
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
        if [ -z "${DPKG_ROOT:-}" ] && [ -x "/etc/init.d/hwclock.sh" ]; then
                update-rc.d hwclock.sh defaults >/dev/null || exit 1
        fi
fi

But that means that update-rc.d will not get executed and that in turn
means that the symlinks /etc/rc*.d/*01hwclock.sh do not get installed.

We have a patch for init-system-helpers in #983421 which lets
update-rc.d do the right thing when DPKG_ROOT is set. The following
patch fixes the problem:

--- a/autoscripts/postinst-init-nostart
+++ b/autoscripts/postinst-init-nostart
@@ -1,5 +1,5 @@
 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = 
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
-       if [ -z "${DPKG_ROOT:-}" ] && [ -x "/etc/init.d/#SCRIPT#" ]; then
+       if [ -x "/etc/init.d/#SCRIPT#" ]; then
                update-rc.d #SCRIPT# #INITPARMS# >/dev/null || #ERROR_HANDLER#
        fi
 fi


Thanks!
cheers, josch

Reply via email to