From 7347c20fe6893ded480c1128f6228fbf1433d485 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 13 Jul 2021 06:52:16 +0200 Subject: [PATCH] Meta: Fix QEMU detection for WSL2 if QEMU isn't installed on the C drive --- Meta/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Meta/run.sh b/Meta/run.sh index f0d29deeff..38e73244c3 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -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