- if isohybrid --help | grep -q -- --uefi ; then
- echo "isohybrid version supports --uefi option, enabling"
- ISOHYBRID_OPTIONS=--uefi
- else
- echo "isohybrid version does NOT support --uefi option, disabling"
+ if ! $UEFI_ENABLE ; then
+ echo "Skipping check for --uefi option in isohybrid since prerequisites are not fulfilled."
+ else
+ if ! isohybrid --help | grep -q -- --uefi ; then
+ echo "isohybrid version does NOT support --uefi option, disabling"
+ else
+ echo "isohybrid version supports --uefi option"
+ ISOHYBRID_OPTIONS=--uefi
+ fi