grub2 support for guests >= karmic

Bug #509609 reported by Loïc Minier on 2010-01-19
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
VMBuilder
Medium
Unassigned
vm-builder (Ubuntu)
Wishlist
Unassigned

Bug Description

Hi

For >= karmic guests, grub2 should be installed and used in the guest instead of grub (same logic as for ext4).

cjwatson has a preliminary patch.

Thanks,

Related branches

Loïc Minier (lool) wrote :
Colin Watson (cjwatson) wrote :

Definitely not ready to go yet though; note e.g. the sh -x in there for testing. I don't have time to work on this further so anyone else should feel free to pick it up given this basis.

Thierry Carrez (ttx) on 2010-01-20
Changed in vm-builder (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Loïc Minier (lool) wrote :

So after some tweaks this is apparently almost working, but I get a segfault in grub:
2010-01-22 01:05:24,516 INFO : + path=/boot/grub
2010-01-22 01:05:24,516 INFO : + uname
2010-01-22 01:05:24,517 INFO : + echo /boot/grub
2010-01-22 01:05:24,517 INFO : + relative_grubdir=/boot/grub
2010-01-22 01:05:24,518 INFO : + [ x/boot/grub = x ]
2010-01-22 01:05:24,518 INFO : + [ i386-pc = i386-pc ]
2010-01-22 01:05:24,527 INFO : + /usr/bin/grub-mkimage --output=/boot/grub/core.img --prefix=/boot/grub biosdisk ext2 part_msdos
2010-01-22 01:05:24,538 INFO : + /usr/sbin/grub-setup --force --directory=/boot/grub --device-map=/boot/grub/device.map (hd0)
2010-01-22 01:05:24,666 INFO : Segmentation fault (core dumped)
2010-01-22 01:05:24,667 INFO : + exit 1
2010-01-22 01:05:24,667 DEBUG : Oh, dear, an exception occurred
2010-01-22 01:05:24,667 INFO : Cleaning up

I'm pushing my WIP branch to lp:~lool/vmbuilder/grub2.

Loïc Minier (lool) wrote :

(I typoed the --author in the last commit of the branch; will fix this in another branch upload next time)

Soren Hansen (soren) wrote :

I'm kind of hesitant accept that branch before this seems to be working. I'm not clued enough to really blame grub2 rather than this integration code. If you can justify that it indeed is grub2, please do so (and open a bug against it).

Soren Hansen (soren) on 2010-02-22
Changed in vmbuilder:
status: New → Triaged
importance: Undecided → Medium
Guilhem Lettron (guilhem-fr) wrote :

I do a lot of work in my branch :
lp:~guilhem-fr/vmbuilder/oneiric-support

You can test on recipe.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers