koan --replace-self relies on grubby

Bug #766229 reported by Tom Ellis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cobbler (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: cobbler

When using koan's --replace-self option, an additional grub entry is used and set as default, so the system is rebooted into the install kernel without having to PXE boot.

This is a neat feature of koan but it relies on 'grubby' which is grub1 specific.

Related branches

Revision history for this message
Tom Ellis (tellis) wrote :

This is similar to #760019 's reliance on grubby

Revision history for this message
Tom Ellis (tellis) wrote :

root@ubuntu-client:~# koan -s 10.153.107.126 --replace-self --profile=natty-client
- looking for Cobbler at http://10.153.107.126/cobbler_api
install_tree: http://10.153.107.126
downloading initrd initrd.gz to /boot/initrd.gz
url=http://10.153.107.126/cobbler/images/natty/initrd.gz
- reading URL: http://10.153.107.126/cobbler/images/natty/initrd.gz
downloading kernel linux to /boot/linux
url=http://10.153.107.126/cobbler/images/natty/linux
- reading URL: http://10.153.107.126/cobbler/images/natty/linux
grubby is not installed

Revision history for this message
Tom Ellis (tellis) wrote :

grub2 uses grub-mkconfig (called by update-grub) to regen the grub.cfg file, as the linux and initrd.gz files are downloaded correctly by koan to /boot/linux and /boot/initrd.gz you can get use it to regenerate the grub.cfg file.

I think grub-mkconfig expects the files in the format vmlinuz-$version and initrd-img-$version though...

Changed in cobbler (Ubuntu):
status: New → Confirmed
Changed in cobbler (Ubuntu):
assignee: nobody → Andres Rodriguez (andreserl)
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cobbler - 2.1.0+git20110602-0ubuntu11

---------------
cobbler (2.1.0+git20110602-0ubuntu11) oneiric; urgency=low

  * debian/patches/51_koan_grub2_instead_of_grubby.patch: Use grub2 for koan's
    '--replace-self' option instead of grubby. (LP: #766229)
 -- Andres Rodriguez <email address hidden> Tue, 28 Jun 2011 17:02:53 -0400

Changed in cobbler (Ubuntu):
status: In Progress → Fix Released
Changed in cobbler (Ubuntu):
assignee: Andres Rodriguez (andreserl) → nobody
status: Fix Released → Triaged
status: Triaged → Fix Committed
Changed in cobbler (Ubuntu):
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.