[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#545070: console-setup: Fails to install in chroot

[Daniel Schepler]
> Setting up console-setup (1.44+pb1) ...
> insserv: Service udev has to be enabled to start service keyboard-setup
> insserv: exiting now!
> dpkg: error processing console-setup (--configure):
>  subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
>  console-setup
> E: Sub-process /usr/bin/dpkg returned an error code (1)

This part is the key information.  I had a look, and the problem is
that the keyboard-setup init.d script state that it require udev,
while the package do not depend on udev.  As udev is supposed to be
optional, I believe the correct fix is for the keyboard-setup init.d
nscript to only have an optional dependency on udev.

Thank you for bringing this up.

I believe this patch will solve the issue, by moving udev from the
scripts required by keyboard-setup, to the scripts keyboard-setup
should start after if present.

diff -ur console-setup-1.44/debian/console-setup.keyboard-setup.init console-setup-1.44-pere/debian/console-setup.keyboard-setup.init
--- console-setup-1.44/debian/console-setup.keyboard-setup.init 2009-07-10 14:45:54.000000000 +0200
+++ console-setup-1.44-pere/debian/console-setup.keyboard-setup.init    2009-09-04 21:16:34.000000000 +0200
@@ -1,9 +1,9 @@
 # Provides:          keyboard-setup
-# Required-Start:    mountkernfs udev
+# Required-Start:    mountkernfs
 # Required-Stop:
-# Should-Start:      keymap
+# Should-Start:      keymap udev
 # X-Start-Before:    checkroot
 # Default-Start:     S
 # Default-Stop:

Happy hacking,
Petter Reinholdtsen

Reply to: