sgdisk -Z $DISK
sgdisk -n 1::+1G -t 1:ef00 -A 1:set:2 $DISK
sgdisk -N 0 $DISK
cat boot.vfat.xz > ${DISK}1
mkdir -p /boot
mount ${DISK}1 /boot
for x86: cat /boot/gptmbr.bin > ${DISK}
aarch64:
gdisk /dev/sda : partition type EF00
mkfs.fat -F 32 -n boot /dev/sda1
mount /dev/sda1 /boot
mkdir -p /boot/EFI/BOOT
cp /root/refind-bin-0.13.3.1/refind/refind_aa64.efi /boot/EFI/BOOT/BOOTAA64.efi
NOTE: gzip -d vmlinuz to vmlinux
/boot/EFI/BOOT/refind.conf
textonly
timeout 10
menuentry Linux {
loader /vmlinux
initrd /initram
options "nomodeset nofb"
}