From 9104a1e701f7be22b84f885e094561c44b52d14e Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Sat, 28 Jan 2023 15:35:35 +0100 Subject: [PATCH] variabilized initial ISO name --- unattended.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unattended.sh b/unattended.sh index e1cb639..2b4cdd1 100755 --- a/unattended.sh +++ b/unattended.sh @@ -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;