Fix build on architecture without syslinux

Don't run xorriso with -isohybrid-mbr if LB_BOOTLOADER_BIOS is
not set to syslinux

Closes: #982746
This commit is contained in:
Luca Boccassi 2021-02-14 21:37:35 +00:00
parent b13c4b1583
commit b968e2c0f7
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ fi
XORRISO_OPTIONS="-R -r -J -joliet-long -l -cache-inodes -iso-level 3"
# Handle xorriso live-build specific options
if [ "${LB_IMAGE_TYPE}" = "iso-hybrid" ]
if [ "${LB_IMAGE_TYPE}" = "iso-hybrid" ] && [ "${LB_BOOTLOADER_BIOS}" = "syslinux" ]
then
XORRISO_OPTIONS="${XORRISO_OPTIONS} -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin -partition_offset 16"
fi