From b1bf09cbc587d164be94ae5a57b8f373059a3281 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sun, 27 Nov 2011 21:22:26 +0100 Subject: [PATCH 1/1] install boot files required for [U]EFI boot Ack-ed by: Christian Hofstaedtler --- grml2usb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/grml2usb b/grml2usb index 14b768f..4b706cc 100755 --- a/grml2usb +++ b/grml2usb @@ -1150,10 +1150,18 @@ def copy_bootloader_files(iso_mount, target, grml_flavour): grub_target = target + '/boot/grub/' execute(mkdir, grub_target) - logo = search_file('logo.16', iso_mount) exec_rsync(logo, syslinux_target + 'logo.16') + bootx64_efi = search_file('bootx64.efi', iso_mount) + if bootx64_efi: + mkdir(target + '/efi/boot/') + exec_rsync(bootx64_efi, target + '/efi/boot/bootx64.efi') + + efi_img = search_file('efi.img', iso_mount) + if efi_img: + mkdir(target + '/boot/') + exec_rsync(efi_img, target + '/boot/efi.img') for ffile in ['f%d' % number for number in range(1, 11) ]: search_and_copy(ffile, iso_mount, syslinux_target + ffile) -- 2.1.4