remove existing image first

This commit is contained in:
Bryan Joshua Pedini 2023-01-28 15:45:39 +01:00
parent 25fe094289
commit 391a9063b6
1 changed files with 1 additions and 0 deletions

View File

@ -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