Trixies uses tmpfs for /tmp, so let's use /var/tmp/vm for temporary VM files

This commit is contained in:
Raphael Dannecker 2025-01-27 17:11:12 +01:00
parent f4dffc06fc
commit 5998c5900e
5 changed files with 12 additions and 6 deletions

View file

@ -295,7 +295,7 @@ if [[ "${PERSISTENT}" == 1 ]] && [[ ! -f "${VM_DIR_PERSISTENT}/${VM_NAME}.qcow2"
fi
# because virsh has problems with long pathnames, using diffent configdir
export XDG_CONFIG_HOME="/tmp/${UID}/.config"
export XDG_CONFIG_HOME="/var/tmp/vm/${UID}/.config"
if ! virsh --connect="${QEMU}" list | grep "${VM_NAME}-clone"; then
echo "VM not yet running."