]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Commented attempt to fix hibernation 9p issue
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 20 Nov 2017 13:54:30 +0000 (11:54 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 20 Nov 2017 13:54:30 +0000 (11:54 -0200)
kvmx

diff --git a/kvmx b/kvmx
index 4ead26accf02c709784c983581df226d9f4b3d0a..aa17626895af80471e113d8dd8e3156aa65430cf 100755 (executable)
--- 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..."