Bug 799964 - hostname should be 'localhost' instead of '(none)' after kickstart install
Summary: hostname should be 'localhost' instead of '(none)' after kickstart install
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Radek Vykydal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-05 14:03 UTC by Kamil Páral
Modified: 2013-06-17 14:46 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-17 14:46:02 UTC
Type: ---


Attachments (Terms of Use)
kickstart I used (912 bytes, text/plain)
2012-03-05 14:03 UTC, Kamil Páral
no flags Details

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


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