Browse Source

Merge 1b201c0ecb into 5a98915a77

pull/69/merge
wdog 3 years ago committed by GitHub
parent
commit
d88218204e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      kvm-install-vm

9
kvm-install-vm

@ -1056,7 +1056,14 @@ function attach-disk ()
VMNAME=$1
# Directory to create attached disk (Checks both images an vms directories for backward compatibility!)
[[ -d ${VMDIR}/${VMNAME} ]] && DISKDIR=${VMDIR}/${VMNAME} || DISKDIR=${IMAGEDIR}/${VMNAME}
DISKNAME=${VMNAME}-${TARGET}-${DISKSIZE}.${FORMAT}
if [ -n ${SOURCE} ]
then
echo "- Using custom disk name ${SOURCE}"
DISKNAME=${SOURCE}
else
DISKNAME=${VMNAME}-${TARGET}-${DISKSIZE}.${FORMAT}
fi
if [ ! -f "${DISKDIR}/${DISKNAME}" ]
then

Loading…
Cancel
Save