[anaconda][rhel7-branch][PATCH] Always show the Network spoke in Initial Setup (#1259801)
Martin Kolman
mkolman at redhat.com
Thu Sep 3 15:20:37 UTC 2015
As we now always carry the Subscription Manager addon in Initial Setup,
we should now also always show the Network spoke.
The Subscription Manager addon needs network connectivity and without
the Network spoke the user might not be able to use it due to
disabled or misconfigured networking.
Resolves: rhbz#1259801
Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
pyanaconda/ui/gui/spokes/network.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 54192a8..69c9cb3 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -34,6 +34,7 @@ from gi.repository import Gtk
from pyanaconda.flags import can_touch_runtime_system
from pyanaconda.i18n import _, N_, C_, CN_
from pyanaconda.flags import flags as anaconda_flags
+from pyanaconda.constants import ANACONDA_ENVIRON, FIRSTBOOT_ENVIRON
from pyanaconda.ui.communication import hubQ
from pyanaconda.ui.gui import GUIObject
from pyanaconda.ui.gui.spokes import NormalSpoke, StandaloneSpoke
@@ -1399,6 +1400,18 @@ class NetworkSpoke(FirstbootSpokeMixIn, NormalSpoke):
category = SystemCategory
+ @classmethod
+ def should_run(cls, environment, data):
+ # the network spoke should run always in the anaconda and also
+ # always in Initial Setup due to Subscription Manager addon
+ # needing a means of (re)configuring network connectivity
+ if environment == ANACONDA_ENVIRON:
+ return True
+ elif environment == FIRSTBOOT_ENVIRON:
+ return True
+ else:
+ return False
+
def __init__(self, *args, **kwargs):
NormalSpoke.__init__(self, *args, **kwargs)
self.network_control_box = NetworkControlBox(self.builder, spoke=self)
--
2.4.3
More information about the anaconda-patches
mailing list