1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

Meta: Fix QEMU detection for WSL2 if QEMU isn't installed on the C drive

This commit is contained in:
Gunnar Beutner 2021-07-13 06:52:16 +02:00 committed by Andreas Kling
parent b805708c6f
commit 7347c20fe6

View file

@ -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