# sda1 == boot
# sda2 == root
parted /dev/sda mklabel gpt
# boot partition. will be a 526~ mb boot partition
parted /dev/sda mkpart P1 fat32 1MiB 512MiB
parted /dev/sda set 1 boot on
# root partition
parted /dev/sda mkpart P2 ext2 512MiB 100%
# format
mkfs.ext4 /dev/sda2
mkfs.fat -F32 /dev/sda1
# mount
mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot