Bug 492515 - liveinst, hostname set during anaconda does not stick
Summary: liveinst, hostname set during anaconda does not stick
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 495419 502505 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-27 07:08 UTC by Warren Togami
Modified: 2009-06-04 03:06 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-05-06 18:31:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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. ***


Note You need to log in before you can comment on or make changes to this bug.