[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #8539] Allow use of grub-install in chrooted environment
From: |
adrelanos |
Subject: |
[bug #8539] Allow use of grub-install in chrooted environment |
Date: |
Sun, 23 Dec 2012 14:29:16 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:10.0) Gecko/20100101 Firefox/10.0 |
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 #8539] Allow use of grub-install in chrooted environment,
adrelanos <=