>From cbb75915c8d543dd31dd7eb9a9d1090a99f6d08c Mon Sep 17 00:00:00 2001
From: Stef Walter <stefw@gnome.org>
Date: Tue, 20 Nov 2012 18:32:30 +0100
Subject: [PATCH 1/2] Set the local hostname during the install

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

