[Pkg-sysvinit-devel] Bug#545205: sysv-rc: upgrade fails if unable to convert to dependency-based boot
Petter Reinholdtsen
pere at hungry.com
Sat Sep 5 18:19:09 UTC 2009
[Mario 'BitKoenig' Holbe]
> when sysv-rc's check if it is safe to convert to dependency based boot
> fails, package upgrade fails:
Strange.
> Preparing to replace sysv-rc 2.87dsf-2 (using .../sysv-rc_2.87dsf-3_all.deb) ...
> Unpacking replacement sysv-rc ...
> Processing triggers for man-db ...
> Setting up sysv-rc (2.87dsf-3) ...
> info: Checking if it is safe to convert to dependency based boot.
> error: Unable to migrate to dependency based boot sequencing.
> dpkg: error processing sysv-rc (--configure):
> subprocess installed post-installation script returned error exit status 128
> Errors were encountered while processing:
> sysv-rc
>
> I have a startup-script which does not have LSB tags and I don't want to
> migrate to dependency based boot, but sysv-rc's postinst should IMHO not
> fail because of that.
It is definitely not supposed to fail like that, and did not do so
when I tested it. Failing to migrate is not a fatal error. The code
in question look like this:
if [ -f $flagfile ] ; then
# Still using legacy ordering, try to convert
if try_to_convert ; then
:
else
echo "error: Unable to migrate to dependency based boot sequencing."
fi
fi
There is nothing there exiting with an error code.
Can you try to add 'set -x' at the start of
/var/lib/dpkg/info/sysv-rc.postinst and let me know what is printed
when you try to configure the sysv-rc package again?
Happy hacking,
--
Petter Reinholdtsen
More information about the Pkg-sysvinit-devel
mailing list