From e8237f4610a367c0b02478442e88e175ad22dbb8 Mon Sep 17 00:00:00 2001 From: aha480 Date: Sat, 1 Mar 2025 12:49:42 +0000 Subject: [PATCH] run_debug.sh now checks if it running on wsl and disables boot_flags if it is since it was causing issues with qemu --- scripts/run_debug.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/run_debug.sh b/scripts/run_debug.sh index cf58cdb..72f4a73 100755 --- a/scripts/run_debug.sh +++ b/scripts/run_debug.sh @@ -94,6 +94,15 @@ check_test_res() { trap 'check_test_res "tests completed"' ERR + +# NOTE(ali): For some reason the values in `boot_flags` were causing issues +# on WSL, so they've been eradicated. +systemInfo=$(uname -r) +if [[ $systemInfo == *"WSL"* ]]; then + echo "Running on WSL2" + boot_flags="" +fi + cd "$project_root" qemu-system-x86_64 -M q35 \ -cdrom "$build_dir/image.iso" \