[PATCH 5/5] Don't set the system's hostname during disk image installs.

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

 



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

diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index 0a781c5..ae29b60 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -473,6 +473,10 @@ class Network:
 
     def setHostname(self, hn):
         self.hostname = hn
+        if flags.imageInstall:
+            log.info("image install -- not setting hostname")
+            return
+
         log.info("setting installation environment hostname to %s" % hn)
         iutil.execWithRedirect("hostname", ["-v", hn ],
                                stdout="/dev/tty5", stderr="/dev/tty5")
-- 
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux