fix: failing to launch VMs from outside directory
https://github.com/quickemu-project/quickemu/pull/875
This commit is contained in:
parent
592271d46b
commit
29be0990fe
3
quickemu
3
quickemu
|
@ -1784,6 +1784,9 @@ if [ -n "${VM}" ] && [ -e "${VM}" ]; then
|
||||||
VMPATH=$(realpath "$(dirname "${VM}")")
|
VMPATH=$(realpath "$(dirname "${VM}")")
|
||||||
VM_MONITOR_SOCKETPATH="${VMDIR}/${VMNAME}-monitor.socket"
|
VM_MONITOR_SOCKETPATH="${VMDIR}/${VMNAME}-monitor.socket"
|
||||||
VM_SERIAL_SOCKETPATH="${VMDIR}/${VMNAME}-serial.socket"
|
VM_SERIAL_SOCKETPATH="${VMDIR}/${VMNAME}-serial.socket"
|
||||||
|
if [ ! -f "${disk_img}" ]; then
|
||||||
|
cd "${VMPATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Backwards compatibility for ${driver_iso}
|
# Backwards compatibility for ${driver_iso}
|
||||||
if [ -n "${driver_iso}" ] && [ -z "${fixed_iso}" ]; then
|
if [ -n "${driver_iso}" ] && [ -z "${fixed_iso}" ]; then
|
||||||
|
|
Loading…
Reference in New Issue