severity #342542 normal
tags #342542 - unreproducible moreinfo
thanks

On Thu, Dec 08, 2005 at 11:06:47PM -0600, Manoj Srivastava wrote:
>         If the postinst says exit 0; and the shell thinks the return
>  value was non 0, you should file a bug against the shell you are
>  using. This is not a kernel-package bug.

Actually, I don't agree any more. From an strace, it looks like the
hook script's output (update-grub in my case) gets piped to debconf,
which doesn't understand the output and issues errors:

read(8, "VERSION 2.0\n", 4096)          = 12
write(7, "0 2.0\n", 6)                  = 6
read(8, "CAPB backup\n", 4096)          = 12
write(7, "0 multiselect backup\n", 21)  = 21
read(8, Searching for GRUB installation directory ... found: /boot/grub . "
Testing for an existing GRUB men"..., 4096) = 47
read(8, "found: /boot/grub/menu.lst .\n", 4096) = 29
write(7, "20 Unsupported command \"testing\""..., 153) = 153
read(8, "Searching for splash image... ", 4096) = 30
read(8, "none found, skipping...\n", 4096) = 24
write(7, "20 Unsupported command \"searchin"..., 133) = 133
read(8, "Found kernel: /boot/vmlinuz-2.6."..., 4096) = 43
write(7, "20 Unsupported command \"found\" ("..., 118) = 118
read(8, "Found kernel: /boot/vmlinuz-2.6."..., 4096) = 43
write(7, "20 Unsupported command \"found\" ("..., 118) = 118
read(8, "Found kernel: /boot/vmlinuz-2.6."..., 4096) = 41
write(7, "20 Unsupported command \"found\" ("..., 116) = 116
read(8, "Updating /boot/grub/menu.lst ..."..., 4096) = 33
read(8, "done\n", 4096)                 = 5
write(7, "20 Unsupported command \"updating"..., 116) = 116
read(8, "\n", 4096)                     = 1
write(7, "20 Unsupported command \"\" (full "..., 71) = 71
read(8, "", 4096)                       = 0

This might be the reason why most debug output isn't printed as well.

Oh yeah, and I think that STFERR in linux-image.postinst line 1102
should be STDERR.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to