Bug 492515

Summary: liveinst, hostname set during anaconda does not stick
Product: [Fedora] Fedora Reporter: Warren Togami <wtogami>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: b.bellec, jrb, pjones, PTrenholme, rmaximo, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-06 18:31:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Warren Togami 2009-03-27 07:08:52 UTC
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.

Comment 1 Warren Togami 2009-04-13 03:08:50 UTC
Still broken in F11 Snapshot1 Live install.

Comment 2 David Cantrell 2009-04-22 01:40:18 UTC
On the newly booted system that you installed via the livecd, what is in /etc/hosts and /etc/sysconfig/network?

Comment 3 David Cantrell 2009-04-22 02:02:59 UTC
*** Bug 495419 has been marked as a duplicate of this bug. ***

Comment 4 Benjamin Bellec 2009-05-04 06:39:20 UTC
Hello,
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).

Comment 5 David Cantrell 2009-05-06 02:38:57 UTC
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.

Comment 6 David Cantrell 2009-05-06 18:31:35 UTC
Fixed in anaconda-11.5.0.50-1.fc11 and later.

Comment 7 David Cantrell 2009-06-04 03:06:26 UTC
*** Bug 502505 has been marked as a duplicate of this bug. ***