Getting an error message like:
| isohybrid version supports --uefi option, enabling
| Creating dd-able ISO using isohybrid
| isohybrid: custom_grml.iso: unable to find efi image
is quite confusing, especially if the /efi/boot/bootx64.efi
and /boot/efi.img files are actually present on the image.
When using xorriso everything is fine, but when using genisoimage
within grml2iso the ISO lacks according UEFI support and the
above mention error message appears. So instead only enable UEFI
mode if building with xorriso and all the other prerequisites are
fulfilled as well.
# efi boot {{{
# default, independent of UEFI support
BOOT_ARGS="-no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat"
# efi boot {{{
# default, independent of UEFI support
BOOT_ARGS="-no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat"
case "$MKISOFS" in
xorriso*)
case "$MKISOFS" in
xorriso*)
echo "Disabling (U)EFI boot support since xorriso version is not recent enough."
else
echo "xorriso with -eltorito-alt-boot support present"
echo "Disabling (U)EFI boot support since xorriso version is not recent enough."
else
echo "xorriso with -eltorito-alt-boot support present"
if ! [ -r "${WRKDIR}/cddir/boot/efi.img" ] ; then
echo "Warning: File /boot/efi.img not found, not extending boot arguments for (U)EFI boot."
if ! [ -r "${WRKDIR}/cddir/boot/efi.img" ] ; then
echo "Warning: File /boot/efi.img not found, not extending boot arguments for (U)EFI boot."
- if ! [ -r "${WRKDIR}/cddir/boot/efi.img" ] ; then
- echo "Warning: File /boot/efi.img not found."
- UEFI_ENABLE=false
- fi
+ echo "Using $MKISOFS for ISO generation (lacking UEFI option), disabling (U)EFI boot support."
# make ISO dd-able {{{
if ! $UEFI_ENABLE ; then
# make ISO dd-able {{{
if ! $UEFI_ENABLE ; then
- echo "Skipping check for --uefi option in isohybrid since /boot/efi.img does not exist."
+ echo "Skipping check for --uefi option in isohybrid since prerequisites are not fulfilled."
else
if ! isohybrid --help | grep -q -- --uefi ; then
echo "isohybrid version does NOT support --uefi option, disabling"
else
if ! isohybrid --help | grep -q -- --uefi ; then
echo "isohybrid version does NOT support --uefi option, disabling"