diff options
author | David Lehman <dlehman@redhat.com> | 2012-01-25 12:02:13 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2012-01-26 11:30:56 -0600 |
commit | 61948858541fece70e843e9fc055248e9b4df3b6 (patch) | |
tree | 68fa4fdde01ece93d04a84ef963060582cdaf5d1 | |
parent | 6dbdb57d9eea27d71794476242d2a845d23c8912 (diff) | |
download | anaconda-61948858541fece70e843e9fc055248e9b4df3b6.tar.gz anaconda-61948858541fece70e843e9fc055248e9b4df3b6.tar.xz anaconda-61948858541fece70e843e9fc055248e9b4df3b6.zip |
Don't set the system's hostname during disk image installs.
-rw-r--r-- | pyanaconda/network.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyanaconda/network.py b/pyanaconda/network.py index 0a781c558..ae29b6015 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") |