summaryrefslogtreecommitdiffstats
path: root/iso2usb.sh
diff options
context:
space:
mode:
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
commit960de8bcc6e209ae35c97597dfbc96761b501b74 (patch)
tree4496ea48d04893b7424f120775522080a1c66c03 /iso2usb.sh
parent8fb2720895f0b28e7872c6b887dc29551702382a (diff)
downloadliveslak-960de8bcc6e209ae35c97597dfbc96761b501b74.tar.gz
liveslak-960de8bcc6e209ae35c97597dfbc96761b501b74.tar.xz
iso2usb.sh: fix detection of UEFI support in the ISO image file.
Diffstat (limited to 'iso2usb.sh')
-rw-r--r--iso2usb.sh7
1 files changed, 2 insertions, 5 deletions
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