Skip to content

Commit

Permalink
fix: Do not store display device (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Oct 5, 2024
1 parent efe2a5b commit 427ba24
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 427ba24

Please sign in to comment.