test-efi-create-disk.sh revision 0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360b
# create GPT table with EFI System Partition
# create FAT32 file system
LOOP=$(losetup --show -f -P test-efi-disk.img)
objcopy \
--add-section .linux=/boot/$(cat /etc/machine-id)/$(uname -r)/linux --change-section-vma .linux=0x40000 \
--add-section .initrd=/boot/$(cat /etc/machine-id)/$(uname -r)/initrd --change-section-vma .initrd=0x3000000 \
# install entries
echo -e "title Test2\nlinux /test2\noptions option=yes word number=1000 more\n" > mnt/loader/entries/test2.conf