> On 18 Mar 2023, at 21:34, Attila Nagy <nagy.att...@gmail.com> wrote: > > > > Daniel Braniss <da...@cs.huji.ac.il <mailto:da...@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).
i made the changes to bootp ages ago, but as far as I remember you can get as kenv variables much stuff, including hostname, which rc.initdiskless can use. I’m using a slightly modified rc.initdiskless btw. it’s a bit late now, but i’ll try and refresh my memory tomorrow. danny