grub-installer failing on Hardy kickseed when "bootloader --md5pass" is set

Bug #221501 reported by Jessica Greer
14
Affects Status Importance Assigned to Milestone
kickseed (Ubuntu)
Fix Released
Medium
Colin Watson
Hardy
Fix Released
Medium
Colin Watson

Bug Description

Looks as though kickseed (0.48) has not been updated to reflect the recent changes to grub-installer (https://cia.vc/stats/project/grub-installer, 00:54 on Apr 15).

The installer fails with "grub-installer: error: Preseeding of encrypted passwords changed! Check installation guide." It appears to me that kickseed's bootloader.sh handler is passing a boolean to 'grub-installer/password-crypted' rather than an MD5 checksum and is not setting 'grub-installer/password-again'.

TEST CASE:

  1) Create a file on an HTTP server containing just the line 'bootloader --md5pass $1$eURfjafX$MhF/cvWmFQWYXkCHpt1tM1' (that's an MD5-crypted version of 'foo').

  2) Boot from the alternate or server install CD; press F6 at the boot menu and add 'ks=URL' to the boot menu, where 'URL' is the URL to the file you created in step 1.

  3) Install as normal. On failure, the error described in the bug will occur (displayed in the syslog or on Alt-F4); on success, the installation will proceed normally. When the GRUB menu is displayed after the first reboot (you may have to press Escape to get it to be displayed), trying to edit a menu entry by pressing 'e' should require the password 'foo'.

Revision history for this message
Jessica Greer (greer-cs) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks! I've committed a fix upstream and will backport this for 8.04.1.

Changed in kickseed:
importance: Undecided → Medium
status: New → Confirmed
importance: Undecided → Medium
milestone: none → ubuntu-8.04.1
status: New → Confirmed
assignee: nobody → kamion
status: Confirmed → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

Uploaded to hardy-proposed. Patch attached for SRU purposes.

Changed in kickseed:
assignee: nobody → kamion
status: Confirmed → Fix Committed
Revision history for this message
Steve Langasek (vorlon) wrote :

accepted into hardy-proposed.

Colin Watson (cjwatson)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kickseed - 0.49

---------------
kickseed (0.49) unstable; urgency=low

  * Adjust 'bootloader --md5pass' for changes in grub-installer 1.31
    (LP: #221501).
  * Use 'sed -i' to change /target/etc/nsswitch.conf (thanks, Christer
    Edwards).

 -- Ubuntu Archive Auto-Sync <email address hidden> Mon, 02 Jun 2008 09:21:15 +0100

Changed in kickseed:
status: Fix Committed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

Note that you need to put "apt-setup/proposed=true" on the kernel command line, until such time as the -19 kernel lands in -updates.

Revision history for this message
Steve Langasek (vorlon) wrote : updated CD images available, please test

hardy test CD images are now available which include the updated installer
components that address this bug:

  http://cdimage.ubuntu.com/hardy/daily/20080612.4/

Please test these images and report your results so we can verify whether
this bug is fixed.

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
<email address hidden> <email address hidden>

Revision history for this message
Steve Beattie (sbeattie) wrote :

I've reproduced the original problem on the released Hardy 8.04 iso images, and verified that grub-install properly writes the password line into menu.lst using the 8.04.1 daily iso image (from 20080612.4).

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

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

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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