diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-03-16 19:23:48 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-03-16 19:23:48 -0300 |
commit | bad3481d39faa886c63844449763fdd1cd5b7fc5 (patch) | |
tree | ad2fe0d9270071976e4ee693a867f411f7697b7f | |
parent | 0b8c7fe13708879c2aaefcb7f9fb3f0f979fc890 (diff) | |
download | kvmx-bad3481d39faa886c63844449763fdd1cd5b7fc5.tar.gz kvmx-bad3481d39faa886c63844449763fdd1cd5b7fc5.tar.bz2 |
Better check at kvmx_hibernate
-rwxr-xr-x | kvmx | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -389,9 +389,15 @@ function kvmx_hibernate { echo "which s2disk &> /dev/null && /usr/bin/sudo s2disk" | kvmx_ssh &> /dev/null - echo "Checking if guest is stopped..." + echo "Checking if hibernation was successful..." sleep 3 - kvmx_status + + if kvmx_running; then + echo "Unable to hibernate guest: please check guest configuration" + exit 1 + else + kvmx_status + fi } # Reboot the guest |