From: Silvio Rhatto Date: Mon, 20 Nov 2017 13:54:48 +0000 (-0200) Subject: Test swapfile presence at kvmx_hibernate X-Git-Tag: 0.1.0~342 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=526a65dd956cb953950141c11040e7df9ad740a5;p=kvmx.git Test swapfile presence at kvmx_hibernate --- diff --git a/kvmx b/kvmx index aa17626..f2c73a0 100755 --- a/kvmx +++ b/kvmx @@ -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