Red Hat Bugzilla – Bug 127763
Installer breaks /etc/hosts convention
Last modified: 2007-11-30 17:06:54 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Description of problem:
We performed a fresh install of AS 2.1 Update 4 and noticed some
changes with the /etc/hosts file that was created. It produced the
following entry in /etc/hosts:
127.0.0.1 localhost.localdomain nodename
In the past, using the other Update CDs like Update 3 it would just
produce the following:
127.0.0.1 localhost.localdomain localhost
ip.address nodename.domain nodename
We would like to find out why this change has occurred. This is
breaking numerous applications.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install RHAS 2.1 Update 4
Actual Results: /etc/hosts file was "corrupted" as described above.
Expected Results: Host->address mappings for network interfaces would
be appended on their own lines.
There were zero changes in anaconda for this in U4. The diff in U4
includes adding an obsoletes in the package and commenting out a check
for the pid being over 100 in the anaconda script.
/etc/hosts has been being written out this way for years as doing it
in other ways breaks some servers starting up in cases where the
network isn't available (dhcp, laptops with pcmcia nics, etc)