linux-image postinst matches header_postinst_hook for postinst_hook incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kernel-package (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Feisty |
Won't Fix
|
Undecided
|
Unassigned | ||
linux-source-2.6.20 (Ubuntu) |
Fix Released
|
High
|
Ben Collins | ||
Feisty |
Invalid
|
Undecided
|
Unassigned | ||
linux-source-2.6.22 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Feisty |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: linux-image-2.6-686
From <email address hidden> Fri Jul 13 11:12:48 2007
Date: Fri, 13 Jul 2007 11:12:48 -0500
From: Matt Domsch <email address hidden>
To: "Brinkman, Alexander" <email address hidden>
Cc: <email address hidden>, Ben Collins <email address hidden>
Subject: Re: ANNOUNCE: dkms 2.0.17
Mail-Followup-To: "Brinkman, Alexander" <email address hidden>,
<email address hidden>, Ben Collins <email address hidden>
References: <email address hidden>
Status: RO
On Fri, Jul 13, 2007 at 11:06:42AM +0200, Brinkman, Alexander wrote:
>
> It would seem that the new Ubuntu stuff that was introduced still has a
> little bug in it. Or better said: probably DKMS is ok, but the hook
> mechanism is not working correctly anymore.
>
> With DKMS 2.0.17 the file /etc/kernel-
> do_symlinks = yes
> relative_links = yes
> do_bootloader = no
> do_bootfloppy = no
> do_initrd = yes
> link_in_boot = no
> postinst_hook = /sbin/update-grub
> postrm_hook = /sbin/update-grub
> header_
>
> When this last line is in the config file the previous lines are not
> called anymore (the postinst and postrm hooks). So update-grub is not
> executed anymore on a kernel update (or remove), which is not good.
>
> It can fairly easily be fixed by adding a link in the
> /etc/kernel/
>
> But I'm not really sure why the hooks in the config file are not used
> anymore. Perhaps because the /etc/kernel/* directories were empty
> before, and now there's a dkms script in them (which would maybe
> overrule the postinst/
> when removing the last line from the kernel-img.conf file, update-grub
> is again called upon installation of a new kernel... very confusing...
Doh. See this in /var/lib/
$
Notice the test. It's matching postinst_hook on the
header_
overriding the call to update-grub with another call to dkms.
That is a bug in the linux-image scripts. Will file as such.
I guess that also means we can't rely on that to hook in DKMS for a
while... :-( And we'll have to respin DKMS to remove that...
Changed in kernel-package: | |
assignee: | nobody → timg-tpi |
Changed in redfish: | |
assignee: | nobody → timg-tpi |
status: | New → In Progress |
Changed in dell: | |
status: | In Progress → Fix Committed |
Changed in kernel-package: | |
assignee: | timg-tpi → nobody |
status: | Fix Committed → Fix Released |
Changed in dell: | |
assignee: | timg-tpi → nobody |
status: | Fix Committed → Fix Released |
Changed in linux-source-2.6.20: | |
status: | Fix Committed → Fix Released |
Changed in somerville: | |
importance: | Undecided → High |
status: | New → Fix Released |
no longer affects: | dell |
bumping to High; as we need to figure out how to deal with this in our FI images.