[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [2.02][PATCH] bootp: export server IP as environment variable
From: |
Daniel Kiper |
Subject: |
Re: [2.02][PATCH] bootp: export server IP as environment variable |
Date: |
Thu, 17 Nov 2016 20:02:34 +0100 |
User-agent: |
Mutt/1.3.28i |
On Fri, Mar 18, 2016 at 08:42:00PM +0300, Andrei Borzenkov wrote:
> Network boot autoconfiguration sets default server to next server IP
> (siaddr) from BOOTP/DHCP reply, but manual configuration using net_bootp
> exports only server name. Unfortunately semantic of server name is not
> clearly defined. BOOTP RFC 951 defines it only for client request, and
> DHCP RFC 1541 only mentions it, without any implied usage. It looks like
> this field is mostly empty in server replies.
>
> Export next server IP as net_<interface>_server_ip variable. This allows
> grub configuration script to set $root/$prefix based on information obtained
> by net_bootp.
>
> Reported and tested by: Nikunj A Dadhania <address@hidden>
> Cc: address@hidden
>
> ---
>
> @Nikunj: cosmetic changes comparing with version you tested - no need to
> allocate small buffer dynamically.
>
> @Vladimir: I think this is useful; I will update networking documentation
> in followup patch.
Vladimir, Andrei, could you take care of it?
Daniel
- Re: [2.02][PATCH] bootp: export server IP as environment variable,
Daniel Kiper <=