Re: Kernel DHCP unpredictable/fails (PXE boot), userspace DHCP works just fine
Date: Sat, 18 Mar 2023 19:34:37 UTC
Daniel Braniss <danny@cs.huji.ac.il> ezt írta (időpont: 2023. márc. 18., Szo, 10:56): > take look at src/stand/libsa/bootp.c, there is a compile option that > allows many > more options to be transferred via dhcp … > Without the kernel BOOTP/DHCP, this (doing the DHCP from userspace, from /etc/rc.d/dhclient) is somewhat late for rc.initdiskless to pick them up, no? I mean how would you use that to have the same support for classes in rc.initdiskless? > > BTW, where possible I’m moving to uefi, since pxeboot is failing with > file to large … > Does that make any changes here? rc.initdiskless is called very early in the boot process and kern.bootp_cookie won't exist (there wouldn't be a hostname either I think, which I also rely on with the in-kernel DHCP).