diff --git a/nixos/lib/make-iso9660-image.sh b/nixos/lib/make-iso9660-image.sh index c9a37379469..31bfe23d3d4 100644 --- a/nixos/lib/make-iso9660-image.sh +++ b/nixos/lib/make-iso9660-image.sh @@ -119,7 +119,11 @@ $xorriso -output $out/iso/$isoName if test -n "$usbBootable"; then echo "Making image hybrid..." - isohybrid --uefi $out/iso/$isoName + if test -n "$efiBootable"; then + isohybrid --uefi $out/iso/$isoName + else + isohybrid $out/iso/$isoName + fi fi if test -n "$compressImage"; then