Creating partition
mkpart "EFI system partition" fat32 33MiB 512MiB
Setting partition flag for boot
set 1 esp on
Formatting partition in FAT32 with mkfs.fat
. sdxY stands for the letter and the partition, respectively.
mkfs.fat -F32 /dev/sdxY