/etc/hosts file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have been playing with kickstarts for a while, however i never understood why when you have the line:

network --device eth0 --bootproto static --ip 192.168.1.8 --netmask 255.255.255.0 --gateway 192.168.1.254 --nameserver 192.168.1.252 --hostname host.mydomain.com

kickstart creates a /etc/hosts file as follows:


127.0.0.1               host.mydomain.com myhost localhost.localdomain localhost

why doesn't it do it correcty as:

127.0.0.1              localhost.localdomain localhost
192.168.1.8          host.mydomain.com host

i know you can create a script in the %post but i was wondering if there was a correct way of generating hosts file in the kickstart that i maybe missing?



[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux