From 960de8bcc6e209ae35c97597dfbc96761b501b74 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Fri, 22 Apr 2016 22:24:45 +0200 Subject: iso2usb.sh: fix detection of UEFI support in the ISO image file. --- iso2usb.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'iso2usb.sh') diff --git a/iso2usb.sh b/iso2usb.sh index 2ae1171..ca4bf4e 100644 --- a/iso2usb.sh +++ b/iso2usb.sh @@ -479,12 +479,9 @@ EFIOFFSET=$(/sbin/fdisk -lu ${SLISO} 2>/dev/null |grep EFI |tr -s ' ' | cut -d' if [ -n "$EFIOFFSET" ]; then # Mount the EFI partition so we can retrieve the EFI bootloader: /sbin/mount -o loop,offset=$((512*$EFIOFFSET)) ${SLISO} ${EFIMNT} - if [ ! -f ${EFIMNT}/EFI/BOOT/bootx64.efi ]; then - echo "-- Note: UEFI boot file 'bootx64.efi' not found on ISO." + if [ ! -f ${EFIMNT}/EFI/BOOT/boot*.efi ]; then + echo "-- Note: UEFI boot file 'bootx64.efi' or 'bootia32.efi' not found on ISO." echo "-- UEFI boot will not be supported" - elif [ ! -f ${EFIMNT}/EFI/BOOT/bootia32.efi ]; then - echo "-- Note: UEFI boot file 'bootia32.efi' not found on ISO." - echo "-- 32-bit UEFI boot will not be supported" else EFIBOOT=1 fi -- cgit v1.2.3