usbinstall.sh: support for detecting system arch and blessing the corresponding grub EFI image
This commit is contained in:
parent
6200e195e6
commit
def5f7687e
@ -377,7 +377,14 @@ fi
|
|||||||
set_pbar 85
|
set_pbar 85
|
||||||
|
|
||||||
cp -a $MOUNTDIR_EFI/EFI $MOUNTDIR_EFI_MAC
|
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..."
|
set_status $"Writing bootloader..."
|
||||||
echo $"Writing bootloader..."
|
echo $"Writing bootloader..."
|
||||||
|
Loading…
Reference in New Issue
Block a user