Red Hat Bugzilla – Bug 492515
liveinst, hostname set during anaconda does not stick
Last modified: 2009-06-03 23:06:26 EDT
LiveCD x86_64 from March 26th, 2009
* Boot LiveCD
* Install to Hard Drive
* When it asks for hostname, I erase the default "localhost.localdomain" and write "mylaptop".
* After booted into system, I find that the hostname is still localhost.localdomain.
Still broken in F11 Snapshot1 Live install.
On the newly booted system that you installed via the livecd, what is in /etc/hosts and /etc/sysconfig/network?
*** Bug 495419 has been marked as a duplicate of this bug. ***
I have also this bug with the F11 Preview (install from the Gnome LiveCD x86).
And when I re-set the hostname (with the command "hostname my_computer_name" in root), this was not stored and at the next boot the default hostname ("localhost.localdomain") is still set.
After re-set the hostname, the file "/etc/hosts" and "/etc/sysconfig/network" still indicate "localhost.localdomain". But the gnome-system-monitor indicate the new hostname (during the current session and it's reset after reboot).
As of commit c1aaab41558216ea1ba16400aaad60657fa76dae, anaconda no longer does anything with /etc/hosts (see bug #491808).
However, we still write out /etc/sysconfig/network, which contains HOSTNAME. I've patched anaconda so that HOSTNAME contains the value you enter in anaconda during a LiveCD install.
Submitted patch for review by the team.
Fixed in anaconda-126.96.36.199-1.fc11 and later.
*** Bug 502505 has been marked as a duplicate of this bug. ***