variabilized initial ISO name

This commit is contained in:
2023-01-28 15:35:35 +01:00
parent 439a95d808
commit 25fe094289
2 changed files with 5 additions and 3 deletions

View File

@@ -4,5 +4,6 @@ apt-get update
apt-get install -y xorriso genisoimage
cd /root/unattended
genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o $(ls | grep "netinst.iso" | sed 's/netinst/unattended/') isofiles
chown 1000:1000 $(ls | grep "netinst.iso" | sed 's/netinst/unattended/')
ISONAME=$(ls | grep "netinst.iso" | sort | tail -n1 | sed 's/netinst/unattended/')
genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ${ISONAME} isofiles
chown 1000:1000 ${ISONAME}