From 43e63b35718cd9c039078805b96d8df495e6ebc5 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:54 -0400 Subject: [PATCH] Use the active standard ISO image dynamic --- buildiso.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildiso.sh b/buildiso.sh index b21d661..a0011de 100755 --- a/buildiso.sh +++ b/buildiso.sh @@ -18,7 +18,9 @@ which xorriso &>/dev/null || fail "This script requires xorriso." test -f /usr/lib/ISOLINUX/isohdpfx.bin &>/dev/null || fail "This script requires isolinux." isofilename="pvc-installer_$(date +%Y-%m-%d).iso" -srcliveisourl="https://cdimage.debian.org/mirror/cdimage/buster_di_rc1-live/amd64/iso-hybrid/debian-live-buster-DI-rc1-amd64-standard.iso" +srcliveisopath="https://cdimage.debian.org/mirror/cdimage/release/current-live/amd64/iso-hybrid" +srcliveisofilename="$( wget -O- ${srcliveisopath}/ | grep 'debian-live-.*-amd64-standard.iso' | awk -F '"' '{ print $6 }' )" +srcliveisourl="${srcliveisopath}/${srcliveisofilename}" show_help() { echo -e "PVC install ISO generator"