mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
Meta: Fix QEMU detection for WSL2 if QEMU isn't installed on the C drive
This commit is contained in:
parent
b805708c6f
commit
7347c20fe6
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ fi
|
||||||
|
|
||||||
if command -v wslpath >/dev/null; then
|
if command -v wslpath >/dev/null; then
|
||||||
case "$SERENITY_QEMU_BIN" in
|
case "$SERENITY_QEMU_BIN" in
|
||||||
/mnt/c/*)
|
/mnt/?/*)
|
||||||
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max,vmx=off"
|
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max,vmx=off"
|
||||||
SERENITY_KERNEL_CMDLINE="$SERENITY_KERNEL_CMDLINE disable_virtio"
|
SERENITY_KERNEL_CMDLINE="$SERENITY_KERNEL_CMDLINE disable_virtio"
|
||||||
esac
|
esac
|
||||||
|
@ -67,7 +67,7 @@ fi
|
||||||
fi
|
fi
|
||||||
if command -v wslpath >/dev/null; then
|
if command -v wslpath >/dev/null; then
|
||||||
case "$SERENITY_QEMU_BIN" in
|
case "$SERENITY_QEMU_BIN" in
|
||||||
/mnt/c/*)
|
/mnt/?/*)
|
||||||
SERENITY_DISK_IMAGE=$(wslpath -w "$SERENITY_DISK_IMAGE")
|
SERENITY_DISK_IMAGE=$(wslpath -w "$SERENITY_DISK_IMAGE")
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue