From 391a9063b659d2ab660faf1dbe5a39b228503c61 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Sat, 28 Jan 2023 15:45:39 +0100 Subject: [PATCH] remove existing image first --- unattended.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/unattended.sh b/unattended.sh index ccad26d..8c315b1 100755 --- a/unattended.sh +++ b/unattended.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash ISONAME=$(ls | grep "netinst.iso" | sort | tail -n1) +rm -f $(echo ${ISONAME} | sed 's/netinst/unattended/') 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