Replace genisoimage with xorriso
This commit is contained in:
parent
241e9f28e3
commit
434242a8fd
14
convert.sh
14
convert.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
scriptName="UUP Converter v0.2.0"
|
scriptName="UUP Converter v0.3.0"
|
||||||
|
|
||||||
editions='analogonecore
|
editions='analogonecore
|
||||||
andromeda
|
andromeda
|
||||||
@ -240,16 +240,16 @@ fi
|
|||||||
if ! which cabextract >/dev/null \
|
if ! which cabextract >/dev/null \
|
||||||
|| ! which wimlib-imagex >/dev/null \
|
|| ! which wimlib-imagex >/dev/null \
|
||||||
|| ! which chntpw >/dev/null \
|
|| ! which chntpw >/dev/null \
|
||||||
|| ! which genisoimage >/dev/null; then
|
|| ! which xorriso >/dev/null; then
|
||||||
echo "One of required applications is not installed."
|
echo "One of required applications is not installed."
|
||||||
echo "The following applications need to be installed to use this script:"
|
echo "The following applications need to be installed to use this script:"
|
||||||
echo " - cabextract"
|
echo " - cabextract"
|
||||||
echo " - wimlib-imagex"
|
echo " - wimlib-imagex"
|
||||||
echo " - chntpw"
|
echo " - chntpw"
|
||||||
echo " - genisoimage"
|
echo " - xorriso"
|
||||||
echo ""
|
echo ""
|
||||||
echo "If you use Debian or Ubuntu you can install these using:"
|
echo "If you use Debian or Ubuntu you can install these using:"
|
||||||
echo "sudo apt-get install cabextract wimtools chntpw genisoimage"
|
echo "sudo apt-get install cabextract wimtools chntpw xorriso"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -481,7 +481,7 @@ else
|
|||||||
isoEdition=`grep -i "^Edition ID:" <<< "$info" | sed "s/.* //g"`
|
isoEdition=`grep -i "^Edition ID:" <<< "$info" | sed "s/.* //g"`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
isoLabel=`tr "[:lower:]" "[:upper:]" <<< "${build}.${spbuild}_${arch}_${lang}"`
|
isoLabel=`tr "[:lower:]" "[:upper:]" <<< "${build}.${spbuild}"`
|
||||||
isoName=`tr "[:lower:]" "[:upper:]" <<< "${build}.${spbuild}_${isoEdition}_${arch}_${lang}.iso"`
|
isoName=`tr "[:lower:]" "[:upper:]" <<< "${build}.${spbuild}_${isoEdition}_${arch}_${lang}.iso"`
|
||||||
|
|
||||||
if [ -e "$isoName" ]; then
|
if [ -e "$isoName" ]; then
|
||||||
@ -491,9 +491,9 @@ fi
|
|||||||
echo -e "$infoColor""Creating ISO image...""$resetColor"
|
echo -e "$infoColor""Creating ISO image...""$resetColor"
|
||||||
find ISODIR -exec touch {} +
|
find ISODIR -exec touch {} +
|
||||||
|
|
||||||
genisoimage -b "boot/etfsboot.com" --no-emul-boot \
|
xorriso -as mkisofs -b "boot/etfsboot.com" --no-emul-boot \
|
||||||
--eltorito-alt-boot -e "efi/microsoft/boot/efisys.bin" --no-emul-boot \
|
--eltorito-alt-boot -e "efi/microsoft/boot/efisys.bin" --no-emul-boot \
|
||||||
--udf --hide "*" -V "$isoLabel" -o "$isoName" ISODIR
|
-J -joliet-long -V "$isoLabel" -o "$isoName" ISODIR
|
||||||
|
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
echo -e "$errorColor""Failed to create ISO image""$resetColor"
|
echo -e "$errorColor""Failed to create ISO image""$resetColor"
|
||||||
|
Loading…
Reference in New Issue
Block a user