david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[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>
This commit is contained in:
Michael Brown 2011-03-27 22:32:11 +01:00
parent 7ccd5b831a
commit d161ebff94
1 changed files with 7 additions and 0 deletions

View File

@ -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