diff options
author | Eric Hameleers <alien@slackware.com> | 2016-04-22 22:24:45 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-04-22 22:24:45 +0200 |
commit | 960de8bcc6e209ae35c97597dfbc96761b501b74 (patch) | |
tree | 4496ea48d04893b7424f120775522080a1c66c03 | |
parent | 8fb2720895f0b28e7872c6b887dc29551702382a (diff) | |
download | liveslak-960de8bcc6e209ae35c97597dfbc96761b501b74.tar.gz liveslak-960de8bcc6e209ae35c97597dfbc96761b501b74.tar.xz |
iso2usb.sh: fix detection of UEFI support in the ISO image file.
Diffstat (limited to '')
-rw-r--r-- | iso2usb.sh | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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 |