Bug 502505

Summary: Value of HOSTNAME= in /etc/sysconfig/network is not changed by anaconda during install (nor, by the way, by the hostname command after install)
Product: [Fedora] Fedora Reporter: Peter Trenholme <PTrenholme>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: 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-06-04 03:05:34 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 Peter Trenholme 2009-05-25 14:44:57 UTC
Description of problem:
Hostname in /etc/sysconfig/network is not set to the value entered during the installation from the prerelease live CD

Version-Release number of selected component (if applicable):


How reproducible:
Every time I've tried it.

Steps to Reproduce:
1. Burn LiveCD
2. Select "Install to HD
3. Enter a hostname when prompted
  
Actual results:
/bin/hostname returns localhost.localdomain

Expected results:
/bin/hostname returns entered string

Additional info:
Changing the HOSTNAME= value in /etc/sysconfig/network fixes the problem

Comment 1 David Cantrell 2009-06-04 03:05:34 UTC
Confirmed that commit 5ebb7235d36390fa72faa730c1f5a452e3432eb1 fixes this problem.  The hostname entered during installation is written to the HOSTNAME= line in /etc/sysconfig/network.

This fix is present in anaconda-11.5.0.50-1 and later builds.

The hostname of the running system is not altered by anaconda.  The hostname you enter is written to /etc/sysconfig/network on the target system.

Comment 2 David Cantrell 2009-06-04 03:06:26 UTC

*** This bug has been marked as a duplicate of bug 492515 ***