Hi,

On 01 Mar 2019, at 14:27, Thomas Schmitt <[email protected]> wrote:

> Hi,
> 
> René Rebe wrote:
>> In general I do not like messing with and duplicating packages, but
>> given the i386 vintage legacy I might add an option (maybe even
>> defaulting to yes) to build grub2 twice, once for vintage BIOS, and
>> once for UEFI to allow creating such hybrid ISOs just for the sake
>> of greatest backward compatibility.
> 
> At least the developer of GRUB2 intended to combine bootloaders for
> PC-BIOS and EFI in one ISO (plus software for some HFS+ addicted Mac
> firmware). So i doubt that duplication of GRUB2 is absolutely necessary
> for that task.
> 
> On a Debian "amd64" system it suffices to install the GRUB2 binary package
> for "pc" BIOS and the packages for "ia32" and "amd64" EFI. Then a run of

Yes, but this is exactly what I mean with duplication. Instead of compiling 
grub2
once, we need to compile it two, or three times over and over again to 
configure,
and build it for all the legacy pc, efi32 and efi64. Though I might be tempted
to skip efi32 in the hope it was not used much, but then, *sigh* I have this
vintage, 1st gen Apple stuff, … :-/

> program grub-mkrescue produces an ISO with BIOS MBR and an EFI partition
> with the start-up programs for both 32-bit and 64-bit Intel:
>  /efi
>  /efi/boot
>  /efi/boot/bootx64.efi
>  /efi/boot/bootia32.efi
>  /efi/boot/boot.efi
>  /NvVars
> The data files have these byte counts:
>  132608 /efi/boot/bootx64.efi
>   95744 /efi/boot/bootia32.efi
>   95744 /efi/boot/boot.efi
>    1759 /NvVars
> That's obviously not enough for a full-fledged GRUB2. So i assume this stuff
> hops as soon as possible into the ISO and its 14 MB of GRUB2 files, where
> it joins the code path after the MBR code and the El Torito boot image
> program on BIOS. (I understand MBR code hops on the El Torito program which
> then boots GRUB2.)
> 
> A look at the buildd log on "amd64"
>  
> https://buildd.debian.org/status/fetch.php?pkg=grub2&arch=amd64&ver=2.02%2Bdfsg1-11&stamp=1549836961&raw=0
> gives the impression that all three needed binary Debian packages
>  grub-pc-bin grub-efi-ia32-bin grub-efi-amd64-bin
> get built in one sweep.
> (I myself am not into building bootloaders from source ... :))


Speaking of “duplication”, ..! ;-)

Or as someone recently commented:
“The world would be awfully boring without bugs. Nothing to fix :D"

        
https://www.youtube.com/watch?v=jn8HUVfeneY&lc=Ugw7N8GkS7E3Q6_yMld4AaABAg

Have a nice day & weekend!

        René

-- 
 ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin
 http://exactcode.com | http://exactscan.com | http://ocrkit.com | 
http://t2-project.org | http://rene.rebe.de

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to