Ignore --uefi option for isohybrid on 32bit systems
authorMichael Prokop <mika@grml.org>
Mon, 4 Jun 2012 21:23:49 +0000 (23:23 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 4 Jun 2012 21:23:49 +0000 (23:23 +0200)
This avoids this misleading error message:

| * Creating hybrid ISO file with isohybrid method
| * Detected uefi support for isohybrid, enabling
| isohybrid: /srv/jenkins/jobs/grml32-full_testing/workspace/grml_isos/grml32-full_testing_20120603.iso: unable to find efi image
|                                                                          [ !! ]

grml-live

index b62e89b..ef840f6 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -1357,9 +1357,14 @@ else
           #   (hidden NTFS, IIRC), as the partition type is sometimes needed
           #   to get the BIOS even look at the partition created by isohybrid
           if isohybrid --help | grep -q -- --uefi ; then
-            log   "Detected uefi support for isohybrid, enabling"
-            einfo "Detected uefi support for isohybrid, enabling"
-            ISOHYBRID_OPTIONS=--uefi
+            if echo $CLASSES | grep -qw I386 ; then
+              log   "Detected uefi support for isohybrid but 32bit systems do not support it, ignoring."
+              einfo "Detected uefi support for isohybrid but 32bit systems do not support it, ignoring."
+            else
+              log   "Detected uefi support for isohybrid, enabling"
+              einfo "Detected uefi support for isohybrid, enabling"
+              ISOHYBRID_OPTIONS=--uefi
+            fi
           fi
 
           log "isohybrid $ISOHYBRID_OPTIONS ${ISO_OUTPUT}/${ISO_NAME}"