feat(macos-compatibility): add usage of mkisofs instead of genisoimage when appropriate (on macOS)
This commit is contained in:
parent
687fb34245
commit
9e50b92ecd
8
convert.sh
Normal file → Executable file
8
convert.sh
Normal file → Executable file
@ -566,7 +566,13 @@ fi
|
||||
echo -e "$infoColor""Creating ISO image...""$resetColor"
|
||||
find ISODIR -exec touch {} +
|
||||
|
||||
genisoimage -b "boot/etfsboot.com" --no-emul-boot \
|
||||
# Use mkisofs instead of genisoimage if it was not found
|
||||
$genisoimage=`which genisoimage >/dev/null 2>&`
|
||||
if [ -z $genisoimage ]; then
|
||||
$genisoimage=`which mkisofs >/dev/null 2>&`
|
||||
fi
|
||||
|
||||
"$genisoimage" -b "boot/etfsboot.com" --no-emul-boot \
|
||||
--eltorito-alt-boot -b "efi/microsoft/boot/efisys.bin" --no-emul-boot \
|
||||
--udf --hide "*" -V "$isoLabel" -o "$isoName" ISODIR
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user