Red Hat Bugzilla – Bug 502505
Value of HOSTNAME= in /etc/sysconfig/network is not changed by anaconda during install (nor, by the way, by the hostname command after install)
Last modified: 2009-06-03 23:06:26 EDT
Description of problem:
Hostname in /etc/sysconfig/network is not set to the value entered during the installation from the prerelease live CD
Version-Release number of selected component (if applicable):
Every time I've tried it.
Steps to Reproduce:
1. Burn LiveCD
2. Select "Install to HD
3. Enter a hostname when prompted
/bin/hostname returns localhost.localdomain
/bin/hostname returns entered string
Changing the HOSTNAME= value in /etc/sysconfig/network fixes the problem
Confirmed that commit 5ebb7235d36390fa72faa730c1f5a452e3432eb1 fixes this problem. The hostname entered during installation is written to the HOSTNAME= line in /etc/sysconfig/network.
This fix is present in anaconda-126.96.36.199-1 and later builds.
The hostname of the running system is not altered by anaconda. The hostname you enter is written to /etc/sysconfig/network on the target system.
*** This bug has been marked as a duplicate of bug 492515 ***