[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/3] Don't try to parse network device info when doing disk image installs.



---
 pyanaconda/kickstart.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index bb625ae..df7b1af 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -573,6 +573,13 @@ class Logging(commands.logging.FC6_Logging):
     
 class NetworkData(commands.network.F8_NetworkData):
     def execute(self, anaconda):
+        if flags.imageInstall:
+            if self.hostname != "":
+                anaconda.network.setHostname(self.hostname)
+                anaconda.network.overrideDHCPhostname = True
+
+            # Only set hostname
+            return
 
         devices = anaconda.network.netdevices
 
-- 
1.7.3.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]