diff --git a/src/usbinstall.sh b/src/usbinstall.sh index 6f27e90..6a3ea3a 100644 --- a/src/usbinstall.sh +++ b/src/usbinstall.sh @@ -377,7 +377,14 @@ fi set_pbar 85 cp -a $MOUNTDIR_EFI/EFI $MOUNTDIR_EFI_MAC -hfs-bless $MOUNTDIR_EFI_MAC/EFI/BOOT/bootia32.efi +TARGET_ARCH=`cat $MOUNTDIR/etc/openmamba-release | sed "s|.*for \(.*\) .*|\1|"` +[ "$TARGET_ARCH" ] || ARCH=i586 + +if [ "$TARGET_ARCH" = "x86_64" ]; then + hfs-bless $MOUNTDIR_EFI_MAC/EFI/BOOT/bootia32.efi +else + hfs-bless $MOUNTDIR_EFI_MAC/EFI/BOOT/bootx64.efi +fi set_status $"Writing bootloader..." echo $"Writing bootloader..."