Follow-up Comment #15, bug #8539 (project grub):

I think it's safe to say, the grub inside chroot is broken, because multiple
projects are affected.

grml-debootstrap (a tool, which can also create virtual machine images) [1] in
file grml-debootstrap [2] uses a hack to run update-grub. Search for
"grub.cfg" within that file.

> einfo "Adjusting grub.cfg for successful boot sequence."
> # ugly but needed to boot grub acordingly
> sed -i "s;set root=.*;set root='(hd0,msdos1)';"
> "${MNTPOINT}"/boot/grub/grub.cfg
> sed -i "s;root=[^ ]+;root=/dev/sda1;" "${MNTPOINT}"/boot/grub/grub.cfg

Another coder failed to use grub for virtual machine images:
vmdebootstrap [3]

Kameleon [4], another virtual machine image creation tool, also uses a hack
[5] for grub.cfg.

[1] https://github.com/grml/grml-debootstrap
[2] https://github.com/grml/grml-debootstrap/blob/master/grml-debootstrap
[3] http://blog.liw.fi/posts/vmdebootstrap-2/
[4] http://wiki-oar.imag.fr/index.php/Kameleon
[5] (No online preview for source code)
/usr/share/kameleon/steps/default$ build_appliance_kpartx.yaml

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?8539>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to