apply uefi_opt if we're building a uefi-enabled iso

This commit is contained in:
parazyd 2017-04-23 14:59:01 +02:00
parent b7fedae885
commit 0066f6c699
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 5 additions and 0 deletions

View File

@ -102,6 +102,10 @@ iso_xorriso_build() {
notice "building iso..." notice "building iso..."
isoname="${image_name}-live.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 mkdir -p $R/dist
pushd $workdir pushd $workdir
sudo xorriso -as mkisofs -r -J -joliet-long -l \ sudo xorriso -as mkisofs -r -J -joliet-long -l \
@ -113,6 +117,7 @@ iso_xorriso_build() {
-no-emul-boot \ -no-emul-boot \
-boot-load-size 4 \ -boot-load-size 4 \
-boot-info-table \ -boot-info-table \
${=uefi_opt} \
-o $R/dist/$isoname \ -o $R/dist/$isoname \
binary || zerr binary || zerr
popd popd