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

Bug#968202: preseed: Checks only BOOTP filename and not DHCP option 67, "bootfile-name"



On Mon, Aug 10, 2020 at 05:00:31PM +0100, Bob Ham wrote:
> 
> The dhcp_preseed_url function in preseed.sh, part of preseed:
> 
> https://salsa.debian.org/installer-team/preseed/-/blob/399d9e8d56d64161449e9415cc8fe33ae88711f2/preseed.sh#L173
> 
> only checks for the "filename" entry in DHCP lease files.
> The "filename" entry is a holdover from the BOOTP protocol.

Yes, DHCP is EEE of BOOTP


> Some DHCP
> servers don't allow setting the filename at all.  OpenWRT's odhcpd,
> doesn't allow setting the filename in DHCP responses for classified
> clients, such as clients with a vendor class containing "d-i", it only
> allows setting DHCP options.

Server side stuff is not client side stuff ...


> It would be good if dhcp_preseed_url could take advantage of the
> DHCP "bootfile-name" option and not just the BOOTP filename.
 
It will require reseach on how the various DHCP clients in  d-i
write down "filename" in their lease file.


Regards
Geert Stappers
Who provides the preseed URL as kernel command line option during netboot
-- 
EEE = https://en.wikipedia.org/wiki/Embrace,_extend,_and_extinguish


Reply to: