run_debug.sh now checks if it running on wsl and disables boot_flags if it is since it was causing issues with qemu
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user