Re: [PATCH 3/4 master] HOSTNAME is not per-device/ifcfg setting.

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

 



Ack.

Radek Vykydal <rvykydal@xxxxxxxxxx> wrote:

> ---
>  loader/net.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/loader/net.c b/loader/net.c
> index ba74a46..ebb8e3c 100644
> --- a/loader/net.c
> +++ b/loader/net.c
> @@ -1417,8 +1417,8 @@ int writeEnabledNetInfo(iface_t *iface) {
>          }
>      }
>  
> -    if (iface->hostname) {
> -        fprintf(fp, "HOSTNAME=%s\n", iface->hostname);
> +    if (iface->hostname && iface->ipv4method == IPV4_DHCP_METHOD) {
> +        fprintf(fp, "DHCP_HOSTNAME=%s\n", iface->hostname);
>      }
>  
>      if (iface->domain) {
> -- 
> 1.7.4
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

-- 
David Cantrell <dcantrell@xxxxxxxxxx>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Seattle, WA | UTC-7

_______________________________________________
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