[Piuparts-devel] Bug#546540: piuparts: Report inconsistent update-rc.d calls?

Petter Reinholdtsen pere at hungry.com
Thu Sep 17 12:55:19 UTC 2009


As dicsussed on #debian-qa, here are more proposals on what to detect
and report using piuparts.

Some packages fail to install because the init.d script have
conflicting provide.  This is normally reported like this:

  insserv: script clvm: service lvm already provided!
  insserv: exiting now!

Other packages fail to install because their dependencies are missing.
This is normally reported like this:

  insserv: Service portmap has to be enabled to start service quotarpc
  insserv: exiting now!

It would be great if piuparts would recognize these errors and make a
list of packages with such problem on
<URL: http://piuparts.debian.org/ >.  The 'exiting now!" string is
printed when insserv return an error code to the postinst script.

Those errors are fatal and block package installation.  The request I
started with was to detect the non-fatal issue with inconsistencies
between the init.d script header and the update-rc.d call.  Those are
reported like this:

  update-rc.d: warning: cman start runlevel arguments (S) do not match
    LSB Default-Start values (2 3 4 5)

All three of these are related to dependency based boot sequencing,
and should perhaps be grouped together?

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Piuparts-devel mailing list