From 7becd08e4d721ee2c187e82fba8168d76dfb33aa Mon Sep 17 00:00:00 2001 From: Adrian Gibanel Lopez Date: Mon, 18 Jan 2016 03:21:39 +0000 Subject: Added EFI support by the means of grub-efi This work is based on debian-cd team work and uses, as much as possible, the same mkisofs options than the Debian Installation CD disk does. It assumes that /boot/grub/grub.cfg (and other design items) is generated by: binary_loopback_cfg . It relies on efi-image and grub-cpmodules being setup as build scripts on live-build package. In the future event of these two files being moved to a binary package (they are originally from: src: live-installer) the binary_grub-efi script would have to be rewritten to take the new paths into account. --- scripts/build/binary_iso | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts/build/binary_iso') diff --git a/scripts/build/binary_iso b/scripts/build/binary_iso index c063c703a..d4a872eb2 100755 --- a/scripts/build/binary_iso +++ b/scripts/build/binary_iso @@ -151,6 +151,15 @@ do XORRISO_OPTIONS="${XORRISO_OPTIONS} -no-emul-boot -boot-load-size 4 -boot-info-table" ;; + grub-efi) + if [ -e binary/boot/grub/efi.img ] + then + XORRISO_OPTIONS="${XORRISO_OPTIONS} -e boot/grub/efi.img -no-emul-boot" + XORRISO_OPTIONS="${XORRISO_OPTIONS} -isohybrid-gpt-basdat -isohybrid-apm-hfsplus" + else + Echo "No EFI boot code to include in the ISO" + fi + ;; *) Echo_warning "Bootloader on your architecture not yet supported by live-build." -- cgit v1.2.3