]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Generate hybrid ISO images if isohybrid is available
authorMichael Brown <mcb30@ipxe.org>
Sun, 27 Mar 2011 21:32:11 +0000 (22:32 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 27 Mar 2011 21:37:04 +0000 (22:37 +0100)
Suggested-by: Gene Cumm <gene.cumm@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/geniso

index 1792fc1c8123c3b7ed80dcbdb4701900c5750c12..790e7171d593dcaa698cab87269e432157d6e681 100755 (executable)
@@ -30,6 +30,9 @@ then
        exit 1
 fi
 
+# isohybrid will be used if available
+isohybrid=`which isohybrid 2>/dev/null`
+
 out=$1
 shift
 dir=`mktemp -d bin/iso.dir.XXXXXX`
@@ -63,3 +66,7 @@ do
 done >> $cfg
 $mkisofs -quiet -l -o $out -c boot.cat -b isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table $dir
 rm -fr $dir
+if [ -n "$isohybrid" ]
+then
+    $isohybrid $out >/dev/null
+fi