Red Hat Bugzilla – Bug 66725
gdm hangs because missing /etc/HOSTNAME file
Last modified: 2014-03-16 22:28:06 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513
Description of problem:
When ethernet is installed after installing redhat (that is not during
the install process), gdm was only working when ethernet was up and
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Here is what I did and how I fixed it.
I installed rh7.3 from scratch on a Dell Inspiron 3800. Later, I configured
When rebooting without ethernet cable attached or ethernet device
disabled - gdm hangs. I noticed a forked subprocess of xdm hanging on something
having to do with my hostname (found this out with strace -p gdm-pid). When
doing 'hostname localhost'
as root, the hanging gdm suddenly worked. Having realized that, I found out that
I needed to write my hostname to /etc/HOSTNAME in order to get gdm work without
ethernet as well. This file used to be
created by initscripts, AFAIK. Can be, that this bug is really a problem in
'neat' or somewhere else.
We had this problem, except gdm was reverting back to text mode, even though
inittab had runlevel 5. I was able to fix it also by adding the guys host name,
with ip address 127.0.0.1, into the /etc/hosts file. I figured it was because
he was using dhcp, but had manually specified a hostname.
I also commented on bug #63956, it seemed to be related.
Closing bugs on older, no longer supported, releases. Apologies for any lack of
If this persists on a current release, such as Fedora Core 4, please open a new bug.