Re: How to get the hostname in stage2 ?

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

 



On Wed, 2009-01-21 at 07:50 -1000, David Cantrell wrote:
>  sethostname() is called from loader if you do a network boot method and
> we have to set up networking in loader.  If you bring up networking only
> for package installation, we don't specifically call sethostname().  I
> needed to do a sethostname() call in loader to preserve one particular
> install case that I can't remember right now.  What would be nice is to
> have NetworkManager setting the hostname for us if it can.

I'm pretty certain that NetworkManager is setting the hostname, if it
gets it from DHCP, or can look it up via DHCP.  What I don't think
happens is if you supply a hostname in anaconda, then get a DHCP address
that either doesn't have a lookup or doesn't match the lookup, you still
get your supplied hostname.  I haven't tested with static IP assignment
yet though.  There certainly is some disconnect with the anaconda
provided hostname and the lookup of the IP hostname.

-- 
Jesse Keating
Fedora -- Freedom² is a feature!
identi.ca: http://identi.ca/jkeating

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[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