dapper install prompts for lilo questions

Bug #206763 reported by Mathias Gug
2
Affects Status Importance Assigned to Milestone
ubuntu-vm-builder (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: ubuntu-vm-builder

While installing a dapper vm, I was prompted for lilo questions. Once answered, grub was installed anyway.

So lilo shouldn't be installed, or at least not prompt for any question.

Related branches

Revision history for this message
Nick Barcet (nijaba) wrote :

Taking a look at this bug, I cannot find anything that installs lilo in u-v-b.
The questions asked does speak about Lilo, only as a reminded, and seems to be presented only because the initial kernel-img.conf does not contain "do_initrd = Yes".
Can you confirm that we are talking about the same thing?

Changed in ubuntu-vm-builder:
status: New → Incomplete
Revision history for this message
Nick Barcet (nijaba) wrote :

Soren found and eradicated the damn thing! Thanks Soren :)

Changed in ubuntu-vm-builder:
importance: Undecided → Medium
status: Incomplete → Fix Committed
Revision history for this message
Thierry Carrez (ttx) wrote :

If the fix is the revision 96, it breaks things here.
Running rev. 99, trying to build an intrepid suite on amd64

Two problems during linux-server kernel installation :
1. lilo gets pulled in.
2. The postinst_hook script registered in do_kernel_img_conf fails (missing upgrade-grub).

The first problem is unrelated to u-v-b : Apt recently changed in Intrepid to install "Recommended" packages by default, so lilo gets pulled in.

The second problem is linked to the change in rev96. Moving the kernel-img.conf building (do_kernel_img_conf) before kernel installation (do_kernel_n_friends) results in kernel postinstall requiring a full grub, and he won't have it before do_bootloader...

I workaround-ed problem (2) by reverting the rev96 patch and problem (1) by passing --no-install-recommends to apt-get in do_kernel_n_friends...

Revision history for this message
Thierry Carrez (ttx) wrote :

Proposed patch to fix the problem in both dapper and intrepid.
* Split kernel-img.conf creation in two parts : one in do_kernel_img_conf, so that it has do_initrd=Yes before kernel install for dapper, and the second in do_bootloader so that the grub postinstall/postrm hook scripts are not in place before grub is
* Use -o APT::Install-Recommends=False during kernel install to avoid pulling lilo in intrepid, and gracefully ignore the option in older apt-get.

I tested on dapper and intrepid VM creation, works for me.

Revision history for this message
Nick Barcet (nijaba) wrote :

Patch applied to the intrepid branch. Thanks Thierry.

Revision history for this message
Nick Barcet (nijaba) wrote :

Fixed in intrepid. Let us know if an SRU is needed for Hardy.

Changed in ubuntu-vm-builder:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.