From 2a98081549f94e07b66b7f8e3d49b0e668ae0053 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 16 Apr 2024 14:15:38 +0200 Subject: [PATCH] feat: Allow filenames in VERSION (#381) --- Dockerfile | 2 +- src/install.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 910b559..97fb4d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM scratch -COPY --from=qemux/qemu-docker:4.20 / / +COPY --from=qemux/qemu-docker:4.21 / / ARG DEBCONF_NOWARNINGS "yes" ARG DEBIAN_FRONTEND "noninteractive" diff --git a/src/install.sh b/src/install.sh index 0e2be7a..c0c600b 100644 --- a/src/install.sh +++ b/src/install.sh @@ -93,6 +93,7 @@ fi CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.iso -printf "%f\n" | head -n 1) [ -z "$CUSTOM" ] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname boot.iso -printf "%f\n" | head -n 1) [ -z "$CUSTOM" ] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.img -printf "%f\n" | head -n 1) +[ -z "$CUSTOM" ] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname "${VERSION/\/storage\//}" -printf "%f\n" | head -n 1) ESD_URL="" MACHINE="q35"