variabilized initial ISO name
This commit is contained in:
parent
439a95d808
commit
25fe094289
@ -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}
|
||||
|
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
xorriso -osirrox on -indev debian-11.3.0-amd64-netinst.iso -extract / isofiles
|
||||
ISONAME=$(ls | grep "netinst.iso" | sort | tail -n1)
|
||||
xorriso -osirrox on -indev ${ISONAME} -extract / isofiles
|
||||
sudo sed -i '/vesamenu.c32/d' isofiles/isolinux/isolinux.cfg
|
||||
if [[ $(grep timeout_style isofiles/boot/grub/grub.cfg) == "" ]]; then
|
||||
sudo sed -i 's/insmod play/set timeout_style=hidden\nset timeout=0\nset default=1\n\ninsmod play/' isofiles/boot/grub/grub.cfg;
|
||||
|
Loading…
Reference in New Issue
Block a user