From 6aee02b4e1f77ace74458d719893a9487d7156c9 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 13 Mar 2024 10:20:18 +0100 Subject: [PATCH] feat: Add flag to disable secure boot (#263) --- Dockerfile | 2 +- src/entry.sh | 3 ++- src/install.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c3c3df7..e2f6aa5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM scratch -COPY --from=qemux/qemu-docker:4.17 / / +COPY --from=qemux/qemu-docker:4.18 / / ARG DEBCONF_NOWARNINGS "yes" ARG DEBIAN_FRONTEND "noninteractive" diff --git a/src/entry.sh b/src/entry.sh index 83b2457..07866ca 100644 --- a/src/entry.sh +++ b/src/entry.sh @@ -1,8 +1,9 @@ #!/usr/bin/env bash set -Eeuo pipefail +: "${BOOT_MODE:="windows"}" + APP="Windows" -BOOT_MODE="windows" SUPPORT="https://github.com/dockur/windows" cd /run diff --git a/src/install.sh b/src/install.sh index 6208950..e5b21f2 100644 --- a/src/install.sh +++ b/src/install.sh @@ -854,7 +854,7 @@ prepareImage() { local iso="$1" local dir="$2" - if [[ "${BOOT_MODE,,}" == "windows" ]]; then + if [[ "${BOOT_MODE,,}" != "windows_legacy" ]]; then if [[ "${DETECTED,,}" != "winxp"* ]] && [[ "${DETECTED,,}" != "win2008"* ]]; then if [[ "${DETECTED,,}" != "winvista"* ]] && [[ "${DETECTED,,}" != "win7"* ]]; then