blob: 62f2fb1a3e189803561a5aa6e27f8051ba66c230 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
From e9d4533753f89367b9a30899c1ba239c9d884f8a Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Thu, 1 Jun 2017 13:34:20 +0800
Subject: [PATCH 36/65] do not support network setting for now
We have a long term plan to support it, but not now.
Upstream-Status: Inappropriate [oe specific]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
pyanaconda/installation.py | 3 +++
pyanaconda/ui/tui/spokes/network.py | 5 +++++
2 files changed, 8 insertions(+)
diff --git a/pyanaconda/installation.py b/pyanaconda/installation.py
index f1cc401..3672fae 100644
--- a/pyanaconda/installation.py
+++ b/pyanaconda/installation.py
@@ -72,6 +72,9 @@ def _writeKS(ksdata):
if ksdata.method.method == "url" and not ksdata.method.url.startswith("https://"):
ksdata.method.noverifyssl = False
+ # Do not support network configuration
+ ksdata.network.network = []
+
# Make it so only root can read - could have passwords
with util.open_with_perm(path, "w", 0o600) as f:
f.write(str(ksdata))
diff --git a/pyanaconda/ui/tui/spokes/network.py b/pyanaconda/ui/tui/spokes/network.py
index a8276e4..b3a4f85 100644
--- a/pyanaconda/ui/tui/spokes/network.py
+++ b/pyanaconda/ui/tui/spokes/network.py
@@ -67,6 +67,11 @@ class NetworkSpoke(FirstbootSpokeMixIn, NormalTUISpoke):
self.errors = []
self._apply = False
+ @classmethod
+ def should_run(cls, environment, data):
+ # Do not support network config for now
+ return False
+
def initialize(self):
self.initialize_start()
self._load_new_devices()
--
2.7.4
|