[PATCH 1/2] Set the local hostname during the install
Stef Walter
stefw at gnome.org
Tue Nov 20 17:32:30 UTC 2012
This allows post install commands to use the hostname of the installed
system. Required by the new realm command.
---
pyanaconda/network.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index b4f3b16..55fa88c 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -879,6 +879,7 @@ def writeNetworkConf(storage, ksdata, instClass):
copyIfcfgFiles(ROOT_PATH)
copyDhclientConfFiles(ROOT_PATH)
copyFileToPath("/etc/resolv.conf", ROOT_PATH, overwrite=flags.livecdInstall)
+ setHostname(ksdata.network.hostname)
# TODO the default for ONBOOT needs to be lay down
# before newui we didn't set it for kickstart installs
instClass.setNetworkOnbootDefault(ksdata)
--
1.8.0
--------------050504090806090406080808
Content-Type: text/x-patch;
name="0002-Add-support-for-the-realm-kickstart-command.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0002-Add-support-for-the-realm-kickstart-command.patch"
More information about the anaconda-patches
mailing list