On 12/19/2012 12:45 PM, Radek Vykydal wrote: > Stef, thanks for heads up, we are probably adding > hostname setting to UI in network spoke for F18. Great :) > We still don't set the hostname for installer environment, > currently it is only set by NM when a connection is activated > (its policy is 1) configuration file 2) dhcp 3) configuration file > in time of NM start 4) address lookup 5) "localhost"). > So for example --hostname configured in kickstart is not > applied in installer environment. I posted a patch a while back to the Anaconda list that applies the host name in the installer environment as part of writing out the network configuration. I've attached that patch again. It would be great if this could go in independent of the realm work, which will be an addon. Cheers, Stef
>From cbb75915c8d543dd31dd7eb9a9d1090a99f6d08c Mon Sep 17 00:00:00 2001 From: Stef Walter <stefw@xxxxxxxxx> 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
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list