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

fix: Do not store display device (#777)

parent efe2a5b7
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -156,10 +156,6 @@ finishInstall() {
    fi
  fi

  if [ -n "${VGA:-}" ] && [[ "${VGA:-}" != "virtio" ]] && [[ "${VGA:-}" != "ramfb" ]]; then
    echo "$VGA" > "$STORAGE/windows.vga"
  fi

  if [ -n "${DISK_TYPE:-}" ] && [[ "${DISK_TYPE:-}" != "scsi" ]]; then
    echo "$DISK_TYPE" > "$STORAGE/windows.type"
  fi
@@ -980,12 +976,6 @@ bootWindows() {

  rm -rf "$TMP"

  if [ -s "$STORAGE/windows.vga" ] && [ -f "$STORAGE/windows.vga" ]; then
    [ -z "${VGA:-}" ] && VGA=$(<"$STORAGE/windows.vga")
  else
    [ -z "${VGA:-}" ] && [[ "${PLATFORM,,}" == "arm64" ]] && VGA="virtio-gpu"
  fi

  if [ -s "$STORAGE/windows.type" ] && [ -f "$STORAGE/windows.type" ]; then
    [ -z "${DISK_TYPE:-}" ] && DISK_TYPE=$(<"$STORAGE/windows.type")
  fi