Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Mar 2023 22:05:17 +0200
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        Attila Nagy <nagy.attila@gmail.com>
Cc:        stable@freebsd.org
Subject:   Re: Kernel DHCP unpredictable/fails (PXE boot), userspace DHCP works just fine
Message-ID:  <41594155-7AED-4265-82FB-89B388BD40D8@cs.huji.ac.il>
In-Reply-To: <CAM2hQG9do_fAOaKvRd5TE%2BMvaW0ywJWbbTbT_2M_6GojBDgemg@mail.gmail.com>
References:  <CAM2hQG-p=bfSh_nxuah9zcTBbz7HQ9pYyvOR2f6rC=CUGePKsg@mail.gmail.com> <CAM2hQG-oDRsoccg3S1LykyUF=joWbdJz=GSPOnUroDRxjZ2_iQ@mail.gmail.com> <0b95a502-eea0-46cc-5d0d-ec6e861ad51f@marco.de> <CAM2hQG_r1THmC826gHDCR%2B3XQWLWookxfxQV=h_rxsfD97XAcg@mail.gmail.com> <E5A4479F-A210-4C1E-9AF5-F3A739B62F72@cs.huji.ac.il> <CAM2hQG9do_fAOaKvRd5TE%2BMvaW0ywJWbbTbT_2M_6GojBDgemg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_B59C8C85-F873-4C93-8C93-7892145251D2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On 18 Mar 2023, at 21:34, Attila Nagy <nagy.attila@gmail.com> wrote:
>=20
>=20
>=20
> Daniel Braniss <danny@cs.huji.ac.il <mailto:danny@cs.huji.ac.il>> ezt =
=C3=ADrta (id=C5=91pont: 2023. m=C3=A1rc. 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 =E2=80=A6=20
> 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?
> =20
>>=20
>> BTW, where possible I=E2=80=99m moving  to uefi, since pxeboot is =
failing with file to large =E2=80=A6
> 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=E2=80=99m=
 using a slightly modified rc.initdiskless btw.
it=E2=80=99s a bit late now, but i=E2=80=99ll try and refresh my memory =
tomorrow.
danny


--Apple-Mail=_B59C8C85-F873-4C93-8C93-7892145251D2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: =
after-white-space;"><br><div><br><blockquote type=3D"cite"><div>On 18 =
Mar 2023, at 21:34, Attila Nagy &lt;nagy.attila@gmail.com&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div><div =
dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote"><div=
 dir=3D"ltr" class=3D"gmail_attr">Daniel Braniss &lt;<a =
href=3D"mailto:danny@cs.huji.ac.il">danny@cs.huji.ac.il</a>&gt; ezt =
=C3=ADrta (id=C5=91pont: 2023. m=C3=A1rc. 18., Szo, =
10:56):<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex"><div>take look at =
src/stand/libsa/bootp.c, there is a compile option that allows =
many<div>more options to be transferred via dhcp =
=E2=80=A6&nbsp;</div></div></blockquote><div>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?</div><div>I mean how would you use that to have the same support =
for classes in =
rc.initdiskless?<br></div><div>&nbsp;<br></div><blockquote =
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px =
solid rgb(204,204,204);padding-left:1ex"><div><div><br></div><div>BTW, =
where possible I=E2=80=99m moving &nbsp;to uefi, since pxeboot is =
failing with file to large =E2=80=A6</div></div></blockquote><div>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).<br></div></div></div>
</div></blockquote></div><br><div>i made the changes to bootp ages ago, =
but as far as I remember you can get as kenv variables</div><div>much =
stuff, including hostname, which rc.initdiskless can use. I=E2=80=99m =
using a slightly modified rc.initdiskless btw.</div><div>it=E2=80=99s a =
bit late now, but i=E2=80=99ll try and refresh my memory =
tomorrow.</div><div>danny</div><div><br></div></body></html>=

--Apple-Mail=_B59C8C85-F873-4C93-8C93-7892145251D2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41594155-7AED-4265-82FB-89B388BD40D8>