Bug#345812: marked as done (postinst sometimes returns error exit
status 128 if update-grub is postinst hook)
Debian Bug Tracking System
owner at bugs.debian.org
Sat Jan 14 16:33:19 UTC 2006
Your message dated Sat, 14 Jan 2006 17:28:56 +0100
with message-id <43C926C8.8010004 at groenstue.dk>
and subject line Fixed in 0.97-3
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 8 Dec 2005 12:53:26 +0000
>From mh+debian-bugs at zugschlus.de Thu Dec 08 04:53:26 2005
Return-path: <mh+debian-bugs at zugschlus.de>
Received: from 5301d.unt0.torres.l21.ma.zugschlus.de
([217.151.83.1] helo=torres.zugschlus.de ident=Debian-exim)
by spohr.debian.org with esmtp (Exim 4.50)
id 1EkLH4-0000OE-Fp
for submit at bugs.debian.org; Thu, 08 Dec 2005 04:53:26 -0800
Received: from lefler.int.l21.ma.zugschlus.de ([192.168.130.38])
by torres.zugschlus.de with esmtp (Exim 4.60)
(envelope-from <mh+debian-bugs at zugschlus.de>)
id 1EkLH1-0008BE-Ml; Thu, 08 Dec 2005 13:53:24 +0100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Marc Haber <mh+debian-bugs at zugschlus.de>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: kernel-package: linux-image postinst fails on lilo system using sarge
Message-ID: <20051208125323.14919.17851.reportbug at lefler.int.l21.ma.zugschlus.de>
X-Mailer: reportbug 3.18
Date: Thu, 08 Dec 2005 13:53:23 +0100
X-Spam-Score: (----) -4.8
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
Package: kernel-package
Version: 10.011
Severity: minor
Installing a linux-image built on sid with kernel-package 10.011 fails
on a sarge system using lilo. It looks like the postinst script
doesn't properly handle lilo's zero return code. I have added debug
output to the postinst:
if (-T "/etc/$loader.conf") {
# Trust and use the existing lilo.conf.
print "You already have a $Loader configuration in /etc/$loader.conf\n";
warn "use lilo.conf\n";
my $ret = &run_lilo();
warn "ret $ret\n";
exit $ret;
warn "after exit\n";
}
and here is the output of that script
$ DEBUG=yes sudo /var/lib/dpkg/info/linux-image-2.6.14.3-zgsrv.postinst configure
vmlinuz(/boot/vmlinuz-2.6.14.3-zgsrv) points to /boot/vmlinuz-2.6.14.3-zgsrv (/boot/vmlinuz-2.6.14.3-zgsrv) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.14.3-zgsrv.postinst line 580, <STDIN> line 2.
use lilo.conf
ret 0
$ echo $?
128
$ less
This, of course, makes aptitude barf.
What I find strange is, that an explicit "exit 0" right after the
"run_lilo" call makes the shell say "128", and an explicit "exit 0"
right before the "run_lilo" makes the shell say "0" as it should be.
This is very strange. Any ideas?
I inspected the changelog of current kernel_package and didn't find
any entries that indicate that this issue was fixed in more recent
versions of kernel-package.
Greetings
Marc
---------------------------------------
Received: (at 345812-done) by bugs.debian.org; 14 Jan 2006 16:26:51 +0000
>From edlund at groenstue.dk Sat Jan 14 08:26:51 2006
Return-path: <edlund at groenstue.dk>
Received: from cicero0.cybercity.dk ([212.242.40.52])
by spohr.debian.org with esmtp (Exim 4.50)
id 1ExoEt-00049x-JT
for 345812-done at bugs.debian.org; Sat, 14 Jan 2006 08:26:51 -0800
Received: from user4.cybercity.dk (user4.cybercity.dk [212.242.41.50])
by cicero0.cybercity.dk (Postfix) with ESMTP id 658D3678A00
for <345812-done at bugs.debian.org>; Sat, 14 Jan 2006 17:26:48 +0100 (CET)
Received: from [10.0.0.2] (port236.ds1-aboes.adsl.cybercity.dk [212.242.227.179])
by user4.cybercity.dk (Postfix) with ESMTP id 12E6D50AD8
for <345812-done at bugs.debian.org>; Sat, 14 Jan 2006 17:26:48 +0100 (CET)
Message-ID: <43C926C8.8010004 at groenstue.dk>
Date: Sat, 14 Jan 2006 17:28:56 +0100
From: Kristian Edlund <edlund at groenstue.dk>
User-Agent: Debian Thunderbird 1.0.7 (X11/20051017)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: 345812-done at bugs.debian.org
Subject: Fixed in 0.97-3
X-Enigmail-Version: 0.93.0.0
OpenPGP: id=7DD7559F
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
If I read this correctly, it is casued by update-grub writing to stdout,
This was fixed in 0.97-3. I will close this bug for now, please reopen
it, if you disagree.
--
Best Regards
Kristian Edlund
GPG ID: 7DD7559F
More information about the Pkg-grub-devel
mailing list