aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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..."