summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgui.py2
-rw-r--r--rescue.py2
-rw-r--r--text.py2
3 files changed, 6 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index eb356f400..2fcc9e987 100755
--- a/gui.py
+++ b/gui.py
@@ -1162,6 +1162,8 @@ class InstallInterface:
pass
def enableNetwork(self, anaconda):
+ if len(anaconda.id.network.netdevices) == 0:
+ return False
from netconfig_dialog import NetworkConfigurator
net = NetworkConfigurator(anaconda.id.network)
ret = net.run()
diff --git a/rescue.py b/rescue.py
index a9624ec11..67d573b1c 100644
--- a/rescue.py
+++ b/rescue.py
@@ -82,6 +82,8 @@ class RescueInterface:
return OkCancelWindow(self.screen, title, text)
def enableNetwork(self, anaconda):
+ if len(anaconda.id.network.netdevices) == 0:
+ return False
from netconfig_text import NetworkConfiguratorText
w = NetworkConfiguratorText(self.screen, anaconda)
ret = w.run()
diff --git a/text.py b/text.py
index 7b5796225..d3dd568f8 100644
--- a/text.py
+++ b/text.py
@@ -496,6 +496,8 @@ class InstallInterface:
return (passphrase, isglobal)
def enableNetwork(self, anaconda):
+ if len(anaconda.id.network.netdevices) == 0:
+ return False
from netconfig_text import NetworkConfiguratorText
w = NetworkConfiguratorText(self.screen, anaconda)
ret = w.run()