+_bootloader_iso: ${CFGROOT} ${ISOROOT}
+ # grub-mkimage -p / -O i386-pc-eltorito biosdisk iso9660 normal linux all_video >"$${ISOROOT}/grub.bin"
+ cp -L "$${CFGROOT}/vmlinuz" "$${CFGROOT}/initrd.img" "$${ISOROOT}"
+ cp /usr/lib/ISOLINUX/isolinux.bin $(addprefix /usr/lib/syslinux/modules/bios/, ldlinux.c32 menu.c32 libutil.c32) "$${ISOROOT}"
+ # printf '%s\n' "set timeout=10" "default=buster" \
+ # "menuentry 'Debian Buster' --id 'buster' {" \
+ # "linux '/vmlinuz' boot=live" "initrd '/initrd.img'" "}" \
+ # >"$${ISOROOT}/grub.cfg"
+ printf '%s\n' "UI menu.c32" "DEFAULT buster" "TIMEOUT 100" \
+ "LABEL buster" " MENU LABEL Debian Buster 64bit" \
+ " KERNEL /vmlinuz" " APPEND initrd=/initrd.img boot=live" \
+ >"$${ISOROOT}/syslinux.cfg"
+
+_efi_mount: ${PBOOT}
+ -umount "efi/"
+ mkdir -p -m 755 "efi/"
+ mount -t vfat -o loop "$${PBOOT}" "efi/"
+
+_efi_umount: _efi_mount
+ umount efi/ && rmdir efi/
+
+_efi_iso: _efi_mount _grub_efi32 _grub_efi64
+ cp -r "$${CFGROOT}/boot/EFI/." "efi/EFI/"
+