mirror of
https://github.com/ipxe/ipxe
synced 2025-12-09 20:09:53 +03:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user