I'm trying to create a external m.2 with ubutnu on it. On the external disk I created a new partition table using GPT and 3 partitions:
efi partition, fat32, flagged boot and esp
swap partition, linux-swap, no flags
main partition, ext4, no flags
Installed it as the something else option and mounted the main partition to / I chose the bootloader location as the efi partition. The external drive boots up without problems on the machine it was made, but not on another machine. Both machines are UEFI