diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-11-20 11:54:48 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-20 11:54:48 -0200 |
commit | 526a65dd956cb953950141c11040e7df9ad740a5 (patch) | |
tree | e9857e51fef53332d69925f961e20083b9f2d328 | |
parent | 7b9a7035d06ac2c1cd2ea1726d567bfc6cd06071 (diff) | |
download | kvmx-526a65dd956cb953950141c11040e7df9ad740a5.tar.gz kvmx-526a65dd956cb953950141c11040e7df9ad740a5.tar.bz2 |
Test swapfile presence at kvmx_hibernate
-rwxr-xr-x | kvmx | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -635,6 +635,11 @@ function kvmx_hibernate { exit 1 fi + if ! kvmx_ssh test -s /swapfile; then + echo "Seems like /swapfile is absent in the guest, aborting" + exit 1 + fi + # Currently 9p driver won't survive a reboot # Umount shared folders #if [ ! -z "$shared_folder" ] && [ ! -z "$shared_folder_mountpoint" ]; then |