Преглед изворни кода

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

Marek Marczykowski-Górecki пре 10 година
родитељ
комит
cac866ed1b
1 измењених фајлова са 4 додато и 1 уклоњено
  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)