bug-xorriso
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-xorriso] Mountable ISO and GRUB2


From: Carlo Caione
Subject: Re: [Bug-xorriso] Mountable ISO and GRUB2
Date: Tue, 27 Dec 2016 12:43:05 +0100

On Sat, Dec 24, 2016 at 1:21 PM, Thomas Schmitt <address@hidden> wrote:
> Hi,

Hey Thomas,

/cut

> Well, we could try to achieve a variation of Vladimir's layout which
> appends the ESP after the ISO, has -partition_offset 16, and marks
> the ISO and the ESP by disjoint GPT partitions.
> The partition offset is necessary because a GPT partition cannot start
> at block 0.
> (Our mileage may vary when we try to compose it by existing xorriso
>  versions.)

What about something like:

1) Create an empty 432 bytes MBR (empty.mbr)

2) Create the ISO with something like:

xorriso -as mkisofs -r -o test.iso -isohybrid-mbr empty.mbr -b
boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4
-boot-info-table --grub2-boot-info -eltorito-alt-boot -e
boot/grub/efi.img -no-emul-boot -isohybrid-gpt-basdat
minimal_directory

3) Overwrite only the MBR with `boot_hybrid.img` from GRUB2 patching
byte address 0x1b0 with the correct offset.

What do you think?

Cheers,

-- 
Carlo Caione  |  +39.340.80.30.096  |  Endless



reply via email to

[Prev in Thread] Current Thread [Next in Thread]