Skip to content

Commit

Permalink
Meta: Fix QEMU detection for WSL2 if QEMU isn't installed on the C drive
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarbeutner authored and awesomekling committed Jul 13, 2021
1 parent b805708 commit 7347c20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Meta/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7347c20

Please sign in to comment.