aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-20 11:54:30 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-20 11:54:30 -0200
commit7b9a7035d06ac2c1cd2ea1726d567bfc6cd06071 (patch)
tree809ccb378739deb0b9a2033ceeb50697d7189b5e /kvmx
parent6e33f067d1e8f3d98544f3bafc0808b84d3eb296 (diff)
downloadkvmx-7b9a7035d06ac2c1cd2ea1726d567bfc6cd06071.tar.gz
kvmx-7b9a7035d06ac2c1cd2ea1726d567bfc6cd06071.tar.bz2
Commented attempt to fix hibernation 9p issue
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx30
1 files changed, 30 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 4ead26a..aa17626 100755
--- a/kvmx
+++ b/kvmx
@@ -635,6 +635,36 @@ function kvmx_hibernate {
exit 1
fi
+ # Currently 9p driver won't survive a reboot
+ # Umount shared folders
+ #if [ ! -z "$shared_folder" ] && [ ! -z "$shared_folder_mountpoint" ]; then
+ # echo "Umounting $shared_folder_mountpoint on guest..."
+ # echo "sudo umount $shared_folder_mountpoint" | kvmx_ssh
+
+ # if [ "$?" != "1" ]; then
+ # echo "Problem umounting $shared_folder_mountpoint, you might have errors when restoring"
+ # fi
+ #elif [ ! -z "$shared_folders" ]; then
+ # local old_ifs="$IFS"
+ # local shared_item
+ # IFS=","
+ # for shared_item in $shared_folders; do
+ # local shared_folder_mountpoint="`echo $shared_item | cut -d ':' -f 3`"
+
+ # # Restore IFS for a while or kvmx_ssh won't work
+ # IFS="$old_ifs"
+ # echo "Umounting $shared_folder_mountpoint on guest..."
+ # echo "sudo umount $shared_folder_mountpoint" | kvmx_ssh
+
+ # if [ "$?" != "1" ]; then
+ # echo "Problem umounting $shared_folder_mountpoint, you might have errors when restoring"
+ # fi
+
+ # IFS=","
+ # done
+ # IFS="$old_ifs"
+ #fi
+
echo "which s2disk &> /dev/null && /usr/bin/sudo s2disk" | kvmx_ssh &> /dev/null
echo "Checking if hibernation was successful..."