Red Hat Bugzilla – Bug 227250
anaconda not setting hostname properly on manual hostname override due to /etc/sysconfig/network error.
Last modified: 2007-11-30 17:11:56 EST
Description of problem:
Fresh install of F7 test 1. During installation, I selected DHCP for network
configuration, but chose a manual hostname. After final reboot, I noticed that
the hostname specified at a command prompt was "localhost". I found that
/etc/sysconfig/network looked a little goofy:
I removed the extra "yes" and a # service network restart fixed the problem.
Version-Release number of selected component (if applicable):
Only tried once
Steps to Reproduce:
1. Install F7 test 1
2. Select DHCP under network configuration (default options for everything
3. Specify hostname override on the network configuration installation page
4. After final reboot after installation, hostname display at terminal prompt
will be localhost
After filing this bug, it occurred to me that it might be a problem with
anaconda instead of dhclient.
I got this too. I installed F7T1 x86_64, so this is probably not arch specific.
Same for "anaconda-18.104.22.168-1" and "dhclient-3.0.5-20.fc7" as of
Installed with 20070222 rawhide and the following kickstart opts:
authconfig --enableshadow --enablenis --nisdomain=yp.colorado-research.com
And ended up with:
note no DOMAINNAME.
Orion - the lack of DOMAINNAME is a different bug. It looks like the authconfig
parameters are getting dropped, most likely due to something I broke in the last
pykickstart reorganization. No need to open a new bug, though, I'll take care
of that right now.
The original bug report here has been fixed and will be in the next build of
This problem still exists in F7 Test 2, which acts slightly different from F7
Test 1. (I now get a correct prompt in Test 1, but not in Test 2, even though
the naming files are of the same form.)
When in F7T2, the terminal prompt lists my computer as localhost, even though I
gave it a name during install.
When in F7T1, it lists my computer as F7T1, the name I gave it when installing
The /etc/hosts files have the same form:
[root@localhost ~]# diff /etc/hosts /mnt/f7t1/etc/hosts
< 127.0.0.1 f7t2.thetoolshed.us f7t2 localhost.localdomain localhost
> 127.0.0.1 f7t1.thetoolshed.us f7t1 localhost.localdomain localhost
This naming persists, even though I set hostname with the hostname command.
The next time I boot to f7t2, the hostname is back to "localhost"
[root@localhost ~]# hostname
[root@localhost ~]# hostname f7t2.thetoolshed.us
[root@localhost ~]# hostname
[root@f7t1 ~]# hostname
Here are the /etc/sysconfig/network file contents:
[root@localhost ~]# cat /etc/sysconfig/network
[root@localhost ~]# cat /mnt/f7t1/etc/sysconfig/network
The fix for this is in anaconda-22.214.171.124, while the version in test 2 is
126.96.36.199. That unfortunately means this bug fix is not in the test 2 tree
which would explain why you are still seeing it.
*** Bug 231012 has been marked as a duplicate of this bug. ***
*** Bug 231650 has been marked as a duplicate of this bug. ***