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

build: Update VirtIO drivers to v0.1.262 (#697)

parent da1e631c
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
FROM scratch
COPY --from=qemux/qemu-docker:5.16 / /
COPY --from=qemux/qemu-docker:5.18 / /

ARG VERSION_ARG="0.0"
ARG DEBCONF_NOWARNINGS="yes"
@@ -28,14 +28,14 @@ COPY --chmod=755 ./src /run/
COPY --chmod=755 ./assets /run/assets

ADD --chmod=755 https://raw.githubusercontent.com/christgau/wsdd/v0.8/src/wsdd.py /usr/sbin/wsdd
ADD --chmod=664 https://github.com/qemus/virtiso/releases/download/v0.1.248/virtio-win-0.1.248.tar.xz /drivers.txz
ADD --chmod=664 https://github.com/qemus/virtiso/releases/download/v0.1.262/virtio-win-0.1.262.tar.xz /drivers.txz

EXPOSE 8006 3389
VOLUME /storage

ENV RAM_SIZE "4G"
ENV CPU_CORES "2"
ENV DISK_SIZE "64G"
ENV VERSION "win11"
ENV RAM_SIZE="4G"
ENV CPU_CORES="2"
ENV DISK_SIZE="64G"
ENV VERSION="win11"

ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]
+269 −303

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ info "Booting ${APP}${BOOT_DESC} using QEMU v$version..."
(( rc != 0 )) && error "$(<"$QEMU_LOG")" && exit 15

terminal
( sleep 10; boot ) &
( sleep 30; boot ) &
tail -fn +0 "$QEMU_LOG" 2>/dev/null &
cat "$QEMU_TERM" 2> /dev/null | tee "$QEMU_PTY" &
wait $! || :
+12 −5
Original line number Diff line number Diff line
@@ -683,7 +683,7 @@ addDriver() {
    "win81x64"* ) folder="w8.1/amd64" ;;
    "win10x64"* ) folder="w10/amd64" ;;
    "win11x64"* ) folder="w11/amd64" ;;
    "win2025"* ) folder="w11/amd64" ;;
    "win2025"* ) folder="2k25/amd64" ;;
    "win2022"* ) folder="2k22/amd64" ;;
    "win2019"* ) folder="2k19/amd64" ;;
    "win2016"* ) folder="2k16/amd64" ;;
@@ -701,9 +701,16 @@ addDriver() {

  [ ! -d "$path/$driver/$folder" ] && return 0

  if [[ "${id,,}" == "winvista"* ]]; then
  case "${id,,}" in
    "winvista"* )
      [[ "${driver,,}" == "viorng" ]] && return 0
  fi
      ;;
    "win2025"* | "win11x64-iot"* | "win11x64-ltsc"* )
      [[ "${driver,,}" == "smbus" ]] && return 0
      [[ "${driver,,}" == "pvpanic" ]] && return 0
      [[ "${driver,,}" == "viogpudo" ]] && return 0
      ;;
  esac

  local dest="$path/$target/$driver"
  mv "$path/$driver/$folder" "$dest"
+3 −3
Original line number Diff line number Diff line
@@ -191,10 +191,10 @@ download_windows_eval() {
      windows_version="windows-11-enterprise" ;;
    "win11${PLATFORM,,}-enterprise-iot-eval" )
      enterprise_type="iot"
      windows_version="windows-11-iot-enterprise-ltsc" ;;
      windows_version="windows-11-iot-enterprise-ltsc-eval" ;;
    "win11${PLATFORM,,}-enterprise-ltsc-eval" )
      enterprise_type="iot"
      windows_version="windows-11-iot-enterprise-ltsc" ;;
      windows_version="windows-11-iot-enterprise-ltsc-eval" ;;
    "win10${PLATFORM,,}-enterprise-eval" )
      enterprise_type="enterprise"
      windows_version="windows-10-enterprise" ;;
@@ -548,7 +548,7 @@ downloadFile() {
  if (( rc == 0 )) && [ -f "$iso" ]; then
    total=$(stat -c%s "$iso")
    if [ "$total" -lt 100000000 ]; then
      error "Downloaded ISO is only $total bytes?" && return 1
      error "Invalid download link: $url (is only $total bytes?). Please report this issue." && return 1
    fi
    ! verifyFile "$iso" "$size" "$total" "$sum" && return 1
    html "Download finished successfully..." && return 0
+1 −1

File changed.

Contains only whitespace changes.

Loading