mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-20 06:02:24 +00:00
Fix repack for AMD64 .iso (#1481)
This commit is contained in:
parent
02098f9b76
commit
932ad6b27c
1 changed files with 16 additions and 6 deletions
20
makeiso.sh
20
makeiso.sh
|
@ -8,10 +8,11 @@ myBACKTITLE="T-Pot - ISO Creator"
|
||||||
### DEV
|
### DEV
|
||||||
myTPOTDIR="tpotiso"
|
myTPOTDIR="tpotiso"
|
||||||
myTPOTSEED="iso/preseed/tpot.seed"
|
myTPOTSEED="iso/preseed/tpot.seed"
|
||||||
myPACKAGES="dialog genisoimage pv rsync syslinux syslinux-utils udisks2 wget xorriso"
|
myPACKAGES="binutils dialog fakeroot genisoimage isolinux p7zip-full pv rsync syslinux syslinux-utils udisks2 wget xorriso"
|
||||||
myPFXFILE="iso/installer/keys/8021x.pfx"
|
myPFXFILE="iso/installer/keys/8021x.pfx"
|
||||||
myINSTALLERPATH="iso/installer/install.sh"
|
myINSTALLERPATH="iso/installer/install.sh"
|
||||||
myNTPCONFFILE="iso/installer/timesyncd.conf"
|
myNTPCONFFILE="iso/installer/timesyncd.conf"
|
||||||
|
myMBR_TEMPLATE="/usr/lib/ISOLINUX/isohdpfx.bin"
|
||||||
myTMP="tmp"
|
myTMP="tmp"
|
||||||
myCONF_FILE="iso/installer/iso.conf"
|
myCONF_FILE="iso/installer/iso.conf"
|
||||||
myCONF_DEFAULT_FILE="iso/installer/iso.conf.dist"
|
myCONF_DEFAULT_FILE="iso/installer/iso.conf.dist"
|
||||||
|
@ -256,14 +257,23 @@ cd $myTPOTDIR
|
||||||
if [ "$myARCH" == "amd64" ];
|
if [ "$myARCH" == "amd64" ];
|
||||||
then
|
then
|
||||||
# Create AMD64 .iso
|
# Create AMD64 .iso
|
||||||
xorrisofs -gui -D -r -V "T-Pot $myARCH" \
|
xorrisofs -r -V "T-Pot $myARCH" \
|
||||||
-cache-inodes -J -l -b isolinux.bin \
|
-iso-level 3 \
|
||||||
-c boot.cat -no-emul-boot -boot-load-size 4 \
|
-full-iso9660-filenames \
|
||||||
|
--mbr-force-bootable -partition_offset 16 \
|
||||||
|
-joliet -joliet-long -rational-rock \
|
||||||
|
-isohybrid-mbr $myMBR_TEMPLATE \
|
||||||
|
-b isolinux.bin \
|
||||||
|
-no-emul-boot \
|
||||||
|
-boot-load-size 4 \
|
||||||
-boot-info-table \
|
-boot-info-table \
|
||||||
|
-c boot.cat \
|
||||||
|
-eltorito-alt-boot \
|
||||||
|
-no-emul-boot \
|
||||||
|
-isohybrid-gpt-basdat \
|
||||||
-o ../"$myTPOTISO" ../"$myTPOTDIR" 2>&1 | awk '{print $1+0} fflush()' | cut -f1 -d"." | dialog --backtitle "$myBACKTITLE" --title "[ Building T-Pot $myARCH .iso ... ]" --gauge "" 5 70 0
|
-o ../"$myTPOTISO" ../"$myTPOTDIR" 2>&1 | awk '{print $1+0} fflush()' | cut -f1 -d"." | dialog --backtitle "$myBACKTITLE" --title "[ Building T-Pot $myARCH .iso ... ]" --gauge "" 5 70 0
|
||||||
echo 100 | dialog --backtitle "$myBACKTITLE" --title "[ Building T-Pot $myARCH .iso ... Done! ]" --gauge "" 5 70
|
echo 100 | dialog --backtitle "$myBACKTITLE" --title "[ Building T-Pot $myARCH .iso ... Done! ]" --gauge "" 5 70
|
||||||
cd ..
|
cd ..
|
||||||
isohybrid $myTPOTISO
|
|
||||||
else
|
else
|
||||||
# Create ARM64 .iso
|
# Create ARM64 .iso
|
||||||
xorriso -as mkisofs -r -V "T-Pot $myARCH" \
|
xorriso -as mkisofs -r -V "T-Pot $myARCH" \
|
||||||
|
|
Loading…
Reference in a new issue