#!/bin/bash # convert archboot.iso to gpt bootable for MacBookAir # works with archboot 2011.07-2 [[ $# -ne 2 ]] && echo "Usage: $0 " && exit ARCHBOOT_ISO=$1 TARGET_FILE=$2 ARCHBOOT_DIR=$(mktemp -d) ESP_DIR=$(mktemp -d) TARGET_DIR=$(mktemp -d) echo ========================Mounting archboot # Set up archboot for copying mount $ARCHBOOT_ISO -o loop $ARCHBOOT_DIR echo ========================Preparing archboot files # We only need x86_64, strip out i686 etc. cp -r $ARCHBOOT_DIR/efi $ESP_DIR cat >$ESP_DIR/efi/grub2/grub.cfg <"