[Buildroot] [PATCH] grub2: fix a few minor issues in help text

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Jul 2 07:37:27 UTC 2014


Dear Jérôme Pouiller,

(Side-note: could you try to avoid sending your e-mails twice to the
mailing list: you're posting to both buildroot at busybox.net and
buildroot at uclibc.org. Thanks!)

On Wed, 02 Jul 2014 08:09:25 +0200, Jérôme Pouiller wrote:

> Just a remark for people who dislike to call sudo in their build 
> scripts:
> 
> genimage can be used to create disk image. Installing grub using 
> genimage is the tricky part. 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 (why?) but it seems it does not matter.

Really nice! Could you write a patch that extends the Config.in help
text of grub2 to include this information? I'm wondering how the
writing of the boot.img at offset 0 doesn't overwrite the partition
table.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list