diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2019-06-05 14:36:40 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2019-06-05 14:36:40 -0300 |
commit | 442c6c82e06dc0b33d48850cf3f2ec1ac6c0f028 (patch) | |
tree | 0dc9b41175b48e084fc0f55c51ebb7aa29022c44 | |
parent | cf0ea447916d2bcad99977f2d5634b6c9748c01c (diff) | |
download | kvmx-442c6c82e06dc0b33d48850cf3f2ec1ac6c0f028.tar.gz kvmx-442c6c82e06dc0b33d48850cf3f2ec1ac6c0f028.tar.bz2 |
Compress: check if image exists
-rwxr-xr-x | kvmx | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1939,6 +1939,11 @@ function kvmx_compress { exit 1 fi + if [ ! -e "$image" ]; then + echo "$BASENAME: image not found: $image" + exit 1 + fi + # Avoid trying to convert guest using other images such as LVM volumes if [ "$format" != "qcow2" ]; then echo "$BASENAME: please convert guest $VM image to qcow2 and update your config" |