Unverified Commit 6aee02b4 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Add flag to disable secure boot (#263)

parent 59b98fe2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
FROM scratch
COPY --from=qemux/qemu-docker:4.17 / /
COPY --from=qemux/qemu-docker:4.18 / /

ARG DEBCONF_NOWARNINGS "yes"
ARG DEBIAN_FRONTEND "noninteractive"
+2 −1
Original line number Diff line number Diff line
#!/usr/bin/env bash
set -Eeuo pipefail

: "${BOOT_MODE:="windows"}"

APP="Windows"
BOOT_MODE="windows"
SUPPORT="https://github.com/dockur/windows"

cd /run
+1 −1
Original line number Diff line number Diff line
@@ -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