variabilized initial ISO name

This commit is contained in:
Bryan Joshua Pedini 2023-01-28 15:35:35 +01:00
parent 439a95d808
commit 9104a1e701

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
xorriso -osirrox on -indev debian-11.3.0-amd64-netinst.iso -extract / isofiles
xorriso -osirrox on -indev ${1} -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;