Aaargh.  After days of reading and trying everything I'm still stuck in a maze. It should be simple but I cannot work it out.I need to create one bootable UEFI disk partition that contains all the space on the disk.  The steps must work in a shell script. Ideally with syslinux/extlinux but if not possible then grub.How to do this?  Surely it should be dead easy, a handful of lines?  Nothing I do works.This is what I have so far:DISK_DEVICE_NAME_CURRENT_OS=hdaecho remove all partitionssudo /usr/local/sbin/sgdisk -Z /dev/${DISK_DEVICE_NAME_CURRENT_OS}echo create GPT partitionsudo /usr/local/sbin/sgdisk -n 1:: /dev/${DISK_DEVICE_NAME_CURRENT_OS}echo format file systemsudo mkfs.ext4 -F /dev/${DISK_DEVICE_NAME_CURRENT_OS}1sudo mkdir -p /mnt/targetsudo mount /dev/${DISK_DEVICE_NAME_CURRENT_OS}1 /mnt/targetsudo mkdir -p  /mnt/target/bootsudo /usr/local/sbin/extlinux --install /mnt/target/bootsudo dd if=/usr/local/share/syslinux/gptmbr.bin of=/dev/${DISK_DEVICE_NAME_CURRENT_OS}When I boot, it says:Booting from Hard Disk.Missing OS.No bootable device.Any suggestions please as to how I can get this disk to boot?thanks
How do I create a bootable GPT UEFI Linux disk?
boot;grub2;uefi;gpt;syslinux