Derive the absolute VMPATH

This commit is contained in:
Martin Wimpress 2021-10-25 14:31:07 +01:00
parent 91e7e18955
commit 3257768677
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -1114,8 +1114,8 @@ if [ -n "${VM}" ] && [ -e "${VM}" ]; then
fi
VMDIR=$(dirname "${disk_img}")
VMNAME=$(basename "${VM}" .conf)
VMPATH=$(dirname "${VM}")
VMNAME=$(basename "${VM}.conf")
VMPATH=$(realpath "$(dirname "${VM}")")
# Backwards compatibility for ${driver_iso}
if [ -n "${driver_iso}" ] && [ -z "${fixed_iso}" ]; then