fix(darwin): do not try and change process name on darwin

This commit is contained in:
Martin Wimpress 2024-05-14 18:46:59 +01:00 committed by Martin Wimpress
parent 2ccfac7ec0
commit 0e6fe28141
1 changed files with 12 additions and 3 deletions

View File

@ -1077,12 +1077,21 @@ function vm_boot() {
echo "#!/usr/bin/env bash" > "${VMDIR}/${VMNAME}.sh" echo "#!/usr/bin/env bash" > "${VMDIR}/${VMNAME}.sh"
# Changing process name is not supported on macOS
if [ ${DARWIN} -eq 1 ]; then
# shellcheck disable=SC2054,SC2206,SC2140
args+=(-accel hvf)
else
# shellcheck disable=SC2054,SC2206,SC2140
args+=(-name ${VMNAME},process=${VMNAME} -enable-kvm)
fi
# shellcheck disable=SC2054,SC2206,SC2140 # shellcheck disable=SC2054,SC2206,SC2140
args+=(-name ${VMNAME},process=${VMNAME} -pidfile "${VMDIR}/${VMNAME}.pid" args+=(-machine ${MACHINE_TYPE},smm=${SMM},vmport=off ${GUEST_TWEAKS}
-enable-kvm -machine ${MACHINE_TYPE},smm=${SMM},vmport=off ${GUEST_TWEAKS}
${CPU} ${SMP} ${CPU} ${SMP}
-m ${RAM_VM} ${BALLOON} -m ${RAM_VM} ${BALLOON}
-rtc base=localtime,clock=host,driftfix=slew) -rtc base=localtime,clock=host,driftfix=slew
-pidfile "${VMDIR}/${VMNAME}.pid")
# shellcheck disable=SC2206 # shellcheck disable=SC2206
args+=(${VIDEO} -display ${DISPLAY_RENDER}) args+=(${VIDEO} -display ${DISPLAY_RENDER})