Hi,

Robert Spiteri wrote:
> I managed to solve the issue by adding the following parameter:
> --bootloaders "grub-pc grub-efi"

I wasn't aware that Debian Live can be built with GRUB for BIOS.


------------------------------------------------------------------------
To possibly bystanding developers:

I looked up the xorrisofs options for the GRUB equivalent of isohybrid:

  
https://sources.debian.org/src/live-build/1:20240810/scripts/build/binary_iso/?#L78
  elif [ "${LB_BOOTLOADER_BIOS}" = "grub-pc" ]
  then
    XORRISO_OPTIONS="${XORRISO_OPTIONS} --grub2-boot-info --grub2-mbr 
/usr/lib/grub/i386-pc/boot_hybrid.img"
    XORRISO_OPTIONS="${XORRISO_OPTIONS} -efi-boot-part --efi-boot-image"

It would be better understandable if the EFI options were moved down to
the handling of the EFI boot image:

  
https://sources.debian.org/src/live-build/1:20240810/scripts/build/binary_iso/?#L160
  grub-efi)
    if [ -e binary/boot/grub/efi.img ]; then
      XORRISO_OPTIONS="${XORRISO_OPTIONS} -e boot/grub/efi.img -no-emul-boot"
      XORRISO_OPTIONS="${XORRISO_OPTIONS} -isohybrid-gpt-basdat 
-isohybrid-apm-hfsplus"

Line 163 would become something like

      if [ "${LB_BOOTLOADER_BIOS}" = "grub-pc" ]
      then
        XORRISO_OPTIONS="${XORRISO_OPTIONS} -efi-boot-part --efi-boot-image"
      else
        XORRISO_OPTIONS="${XORRISO_OPTIONS} -isohybrid-gpt-basdat 
-isohybrid-apm-hfsplus"
      fi

The result is supposed to be the same as with the current somewhat
self-contradicting set of options in case of "grub-pc":
  -efi-boot-part --efi-boot-image ... -isohybrid-gpt-basdat
  -isohybrid-apm-hfsplus

Options -isohybrid-gpt-basdat and -isohybrid-apm-hfsplus have no effect,
if not options -isohybrid-mbr or -part_like_isohybrid are given,
which they should not be if GRUB BIOS equipment is used.


Further i think that -isohybrid-apm-hfsplus should be removed,
unless a HFS+ filesystem image is given by -e, as Fedora once did
in its ISO for getting a third boot image for pre-EFI Macs.
("Ceterum censeo Carthaginem esse delendam.", Cato)

------------------------------------------------------------------------

Have a nice day :)

Thomas

Reply via email to