I found the thread on the linux-fai mailing list and also the code that added efi support into setup-storage. In the end we remove the code from FAI, since it was not needed any more.
It's much easier to get a partition of type ESP. Just create a disk gpt disk label, a partition of type vfat that is mounted to /boot/efi and set the boot flag on this partition using the bootable:1 keywork in the disk_config line. This will result in a partition type of esp. This is the normal parted behaviour. It should look like this: disk_config disk1 disklabel:gpt fstabkey:uuid bootable:1 primary /boot/efi 200 vfat rw primary / 1G- ext4 rw We should document this, but IMO there's no need for a patch in setup-storage. -- regards Thomas