commit 0066f6c6990057f11bc1f89fe043e137f9cd0780
parent b7fedae88529443141471043acf75223befc5f34
Author: parazyd <parazyd@dyne.org>
Date: Sun, 23 Apr 2017 14:59:01 +0200
apply uefi_opt if we're building a uefi-enabled iso
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/zlibs/iso b/zlibs/iso
@@ -102,6 +102,10 @@ iso_xorriso_build() {
notice "building iso..."
isoname="${image_name}-live.iso"
+ [[ -n "$mkefi" ]] && {
+ uefi_opt="-eltorito-alt-boot -e boot/grub/efiboot.img -isohybrid-gpt-basdat -no-emul-boot"
+ }
+
mkdir -p $R/dist
pushd $workdir
sudo xorriso -as mkisofs -r -J -joliet-long -l \
@@ -113,6 +117,7 @@ iso_xorriso_build() {
-no-emul-boot \
-boot-load-size 4 \
-boot-info-table \
+ ${=uefi_opt} \
-o $R/dist/$isoname \
binary || zerr
popd