Meta: Fix QEMU detection for WSL2 if QEMU isn't installed on the C drive
This commit is contained in:
parent
b805708c6f
commit
7347c20fe6
Notes:
sideshowbarker
2024-07-18 09:08:35 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/7347c20fe68 Pull-request: https://github.com/SerenityOS/serenity/pull/8714
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ fi
|
|||
|
||||
if command -v wslpath >/dev/null; then
|
||||
case "$SERENITY_QEMU_BIN" in
|
||||
/mnt/c/*)
|
||||
/mnt/?/*)
|
||||
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max,vmx=off"
|
||||
SERENITY_KERNEL_CMDLINE="$SERENITY_KERNEL_CMDLINE disable_virtio"
|
||||
esac
|
||||
|
@ -67,7 +67,7 @@ fi
|
|||
fi
|
||||
if command -v wslpath >/dev/null; then
|
||||
case "$SERENITY_QEMU_BIN" in
|
||||
/mnt/c/*)
|
||||
/mnt/?/*)
|
||||
SERENITY_DISK_IMAGE=$(wslpath -w "$SERENITY_DISK_IMAGE")
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Reference in a new issue