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

Bug#560820: mkvmlinuz: Doesn't display errors it got as input in /etc/kernel/postinst.d/mkvmlinuz

Package: mkvmlinuz
Version: 35
Severity: normal

This seems to be similar to the already fixed bugs #518231 and
#522666 reported against the linux-2.6 source package.

The recent two kernel updates (linux-image-2.6.30-2-powerpc and
linux-image-2.6.32-trunk-powerpc) on my G4 reproducible fail because
of /usr/share/debconf/confmodule seems to try to parse lines not
intended for it. I added a "set -x" to
/etc/kernel/postinst.d/mkvmlinuz to show where the error occurs:

Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut       
Lese Status-Informationen ein... Fertig
Lese erweiterte Statusinformationen... Fertig
Initialisiere Paketstatus... Fertig          
Schreibe erweiterte Statusinformationen... Fertig
Die folgenden teilweise installierten Pakete werden konfiguriert:
  linux-image-2.6.30-2-powerpc linux-image-2.6.32-trunk-powerpc 
Es werden keine Pakete installiert, aktualisiert oder entfernt.
0 Pakete aktualisiert, 0 zustzlich installiert, 0 werden entfernt und 62 nicht aktualisiert.
Muss 0B an Archiven herunterladen. Nach dem Entpacken werden 0B zusätzlich belegt sein.
Schreibe erweiterte Statusinformationen... Fertig
Richte linux-image-2.6.30-2-powerpc ein (2.6.30-8squeeze1) ...
Running depmod.
Running update-initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.30-2-powerpc
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.32-trunk-powerpc /boot/vmlinux-2.6.32-trunk-powerpc
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32-trunk-powerpc /boot/vmlinux-2.6.32-trunk-powerpc
run-parts: executing /etc/kernel/postinst.d/mkvmlinuz 2.6.32-trunk-powerpc /boot/vmlinux-2.6.32-trunk-powerpc
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
+ db_get mkvmlinuz/bootloaders
+ _db_cmd 'GET mkvmlinuz/bootloaders'
+ IFS=' '
+ printf '%s\n' 'GET mkvmlinuz/bootloaders'
+ IFS='
+ read -r _db_internal_line
+ RET='20 Unsupported command "running" (full line was "Running DKMS auto installation service for kernel 2.6.32-trunk-powerpc: blcr (0.8.2)...failed.") received from confmodule.'
+ case ${_db_internal_line%%[   ]*} in
+ return 20
run-parts: /etc/kernel/postinst.d/mkvmlinuz exited with return code 20
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.32-trunk-powerpc.postinst line 861, <STDIN> line 7.

Looks like this time DKMS is the source of the problematic line. The
error reported in that problematic line doesn't show up anywhere else
although I would expect that it should.

Deinstalling blcr-dkms and dkms made the problem vanish.

So there are probably two bugs:

* mkvmlinuz should display any subsequent error messages it received
  that way, but doesn't.

* Either the blcr-dkms or the dkms package (or both) have a bug and
  possibly output it on the wrong filehandle (STDIN instead of STDERR
  or so), so mkvmlinuz gets confused (but IMHO should be able to at
  least argue about such problems more verbosely).

I'm though not 100% sure, if this is a general problem with mkvmlinuz'
debconf parsing (or maybe even debconf). Thus only severity normal.
Please feel free to change the severity or to reassign if appropriate.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (400, 'stable'), (110, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.30-2-powerpc
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mkvmlinuz depends on:
ii  bash                          4.0-7      The GNU Bourne Again SHell
ii  binutils                      2.20-4     The GNU assembler, linker and bina
ii  cdebconf [debconf-2.0]        0.145+b1   Debian Configuration Management Sy
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries

mkvmlinuz recommends no packages.

mkvmlinuz suggests no packages.

-- debconf information:
  mkvmlinuz/bootloaders: yaboot

Reply to: