Bug 799964

Summary: hostname should be 'localhost' instead of '(none)' after kickstart install
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: anaconda-maint-list, g.kaviyarasu, jonathan, myllynen, rvykydal, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-17 14:46:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
kickstart I used none

Description Kamil Páral 2012-03-05 14:03:35 UTC
Description of problem:
I did a kickstarted installation. I did not set any hostname. I do not even know how. The only network command I used was:

network --device link --activate

After installation the hostname of the installed system is '(none)', literally:

$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=(none)

That is one damn weird hostname. I would expect to have a default 'localhost' or 'localhost.localdomain' instead.

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

Comment 1 Kamil Páral 2012-03-05 14:03:55 UTC
Created attachment 567626 [details]
kickstart I used

Comment 2 Radek Vykydal 2012-03-05 21:10:22 UTC
Would this updates image fix it?
http://rvykydal.fedorapeople.org/updates.hostnone.img

Comment 3 Kamil Páral 2012-03-07 13:25:14 UTC
Yes it seems to fix it.

Comment 4 Marko Myllynen 2012-04-20 08:44:17 UTC
The updates image at http://rvykydal.fedorapeople.org/updates.hostnone.img does not fix the issue when installing using iPXE and kickstart which does not have network directive defined at all, (none) is still being set as HOSTNAME.

Comment 5 Radek Vykydal 2013-06-17 14:46:02 UTC
A number of fixes for default hostname value setting has been pushed since F17, this issue should be fixed in Fedora 19 (hostname is stored in /etc/hostname in F19).