diff --git a/src/install.sh b/src/install.sh index 9493873..07998e8 100644 --- a/src/install.sh +++ b/src/install.sh @@ -172,6 +172,10 @@ finishInstall() { echo "$ARGS" > "$STORAGE/windows.args" fi + if [ -n "${VGA:-}" ] && [[ "${VGA:-}" != "virtio"* ]]; then + echo "$VGA" > "$STORAGE/windows.vga" + fi + if [ -n "${USB:-}" ] && [[ "${USB:-}" != "qemu-xhci"* ]]; then echo "$USB" > "$STORAGE/windows.usb" fi @@ -1064,6 +1068,13 @@ bootWindows() { ARGUMENTS="$ARGS ${ARGUMENTS:-}" fi + if [ -s "$STORAGE/windows.vga" ] && [ -f "$STORAGE/windows.vga" ]; then + if [ -z "${VGA:-}" ]; then + VGA=$(<"$STORAGE/windows.vga") + VGA="${VGA//[![:print:]]/}" + fi + fi + if [ -s "$STORAGE/windows.usb" ] && [ -f "$STORAGE/windows.usb" ]; then if [ -z "${USB:-}" ]; then USB=$(<"$STORAGE/windows.usb")