Browse Source

[build] Generate hybrid ISO images if isohybrid is available

Suggested-by: Gene Cumm <gene.cumm@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 years ago
parent
commit
d161ebff94
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/util/geniso

+ 7
- 0
src/util/geniso View File

30
 	exit 1
30
 	exit 1
31
 fi
31
 fi
32
 
32
 
33
+# isohybrid will be used if available
34
+isohybrid=`which isohybrid 2>/dev/null`
35
+
33
 out=$1
36
 out=$1
34
 shift
37
 shift
35
 dir=`mktemp -d bin/iso.dir.XXXXXX`
38
 dir=`mktemp -d bin/iso.dir.XXXXXX`
63
 done >> $cfg
66
 done >> $cfg
64
 $mkisofs -quiet -l -o $out -c boot.cat -b isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table $dir
67
 $mkisofs -quiet -l -o $out -c boot.cat -b isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table $dir
65
 rm -fr $dir
68
 rm -fr $dir
69
+if [ -n "$isohybrid" ]
70
+then
71
+    $isohybrid $out >/dev/null
72
+fi

Loading…
Cancel
Save