diff options
author | Adrian Gibanel Lopez <adrian.gibanel@btactic.com> | 2016-01-18 03:21:39 +0000 |
---|---|---|
committer | Adrian Gibanel Lopez <adrian.gibanel@btactic.com> | 2016-07-31 15:09:13 +0200 |
commit | 7becd08e4d721ee2c187e82fba8168d76dfb33aa (patch) | |
tree | be4431f9e343b1e81cc4a32606471f760c03f19a /scripts/build/binary_iso | |
parent | 9cebad25f98976d9bb0a42fcbf76392a26503d6a (diff) | |
download | vyos-live-build-7becd08e4d721ee2c187e82fba8168d76dfb33aa.tar.gz vyos-live-build-7becd08e4d721ee2c187e82fba8168d76dfb33aa.zip |
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.
Diffstat (limited to 'scripts/build/binary_iso')
-rwxr-xr-x | scripts/build/binary_iso | 9 |
1 files changed, 9 insertions, 0 deletions
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." |