grub2: Add a tip to create disk image w/o root permission
PATCH 1/1 grub2: Add a tip to create disk image w/o root permission
Signed-off-by J?r?me Pouiller <[email protected]>
--- boot/grub2/Config.in | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-)
boot/grub2/Config.in +31 -2
@@ -36,7 +36,30 @@ config BR2_TARGET_GRUB2 -c ./output/images/grub.img -d . /dev/loop0 6. Your disk.img is ready! - To test your BIOS image in Qemu: + To automate this process + ------------------------ + + You can use genimage tool to automate partition creation. + However, installing grub using genimage is tricky. It can be + done using : + + partition boot { + in-partition-table = "no" + image = "path_to_boot.img" + offset = 0 + size = 512 + } + partition grub { + in-partition-table = "no" + image = "path_to_grub.img" + offset = 512 + } + + The result is not byte to byte identical to result using + grub-bios-setup but it seems it does not matter. + + To test your BIOS image in Qemu + ------------------------------- qemu-system-{i386,x86-64} -hda disk.img
@@ -70,7 +93,13 @@ config BR2_TARGET_GRUB2 sudo losetup -d /dev/loop0 7. Your disk.img is ready! - To test your EFI image in Qemu: + To automate this process + ------------------------ + + You can use genimage tool to automate partition creation. + + To test your EFI image in Qemu + ------------------------------ 1. Download the EFI BIOS for Qemu Version IA32 or X64 depending on the chosen Grub2
Signature · 1 line
2.0.0
Thomas Petazzoni
AppliedPATCH 1/1 grub2: Add a tip to create disk image w/o root permission
Dear J?r?me Pouiller,
Quoted 4 lines · J?r?me Pouiller
Signed-off-by J?r?me Pouiller <[email protected]>--- boot/grub2/Config.in | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-)
Thanks, applied, after making minor fixes/improvements.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com