2008/4/1 Jeff Spaleta <jspaleta(a)gmail.com>:
My /etc/hosts file never changes during these operations, and the
environment variable $HOSTNAME continues to be localhost.localdomain, which
is defined in /etc/hosts
But does the kernel's idea of the hostname change? (output of
`hostname`) If it does that has historically broken X/ORBit.
The real fix for that is for desktops not to change the hostname at
all. Pick a hostname derived from the firstboot username, map it to
127.0.0.1, and never change it.