Browse Source

core: not not fail network reconnect on HVM without qrexec installed

Marek Marczykowski-Górecki 10 years ago
parent
commit
cac866ed1b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      core-modules/005QubesNetVm.py

+ 4 - 1
core-modules/005QubesNetVm.py

@@ -154,7 +154,10 @@ class QubesNetVm(QubesVm):
 
             # force frontend to forget about this device
             #  module actually will be loaded back by udev, as soon as network is attached
-            vm.run("modprobe -r xen-netfront xennet", user="root")
+            try:
+                vm.run("modprobe -r xen-netfront xennet", user="root")
+            except:
+                pass
 
             try:
                 vm.attach_network(wait=False)