grub-devel
[Top][All Lists]
Advanced

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

Re: [2.02][PATCH] bootp: export server IP as environment variable


From: Andrei Borzenkov
Subject: Re: [2.02][PATCH] bootp: export server IP as environment variable
Date: Fri, 18 Nov 2016 21:11:47 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

17.11.2016 22:02, Daniel Kiper пишет:
> 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
> 

I added documentation (not worth separate patch); if there are no
objections I commit.


Attachment: bootp-server-ip.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]