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
Notes: sideshowbarker 2024-07-18 09:08:35 +09:00

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