Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Mar 2023 20:34:37 +0100
From:      Attila Nagy <nagy.attila@gmail.com>
To:        Daniel Braniss <danny@cs.huji.ac.il>
Cc:        stable@freebsd.org
Subject:   Re: Kernel DHCP unpredictable/fails (PXE boot), userspace DHCP works just fine
Message-ID:  <CAM2hQG9do_fAOaKvRd5TE%2BMvaW0ywJWbbTbT_2M_6GojBDgemg@mail.gmail.com>
In-Reply-To: <E5A4479F-A210-4C1E-9AF5-F3A739B62F72@cs.huji.ac.il>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000006a845605f731c9f3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Daniel Braniss <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
>
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=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).

--0000000000006a845605f731c9f3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<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=91pon=
t: 2023. m=C3=A1rc. 18., Szo, 10:56):<br></div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,2=
04);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 dhc=
p =E2=80=A6=C2=A0</div></div></blockquote><div>Without the kernel BOOTP/DHC=
P, this (doing the DHCP from userspace, from /etc/rc.d/dhclient) is somewha=
t 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>=C2=A0<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 =C2=A0to ue=
fi, since pxeboot is failing with file to large =E2=80=A6</div></div></bloc=
kquote><div>Does that make any changes here? rc.initdiskless is called very=
 early in the boot process and kern.bootp_cookie won&#39;t exist (there wou=
ldn&#39;t be a hostname either I think, which I also rely on with the in-ke=
rnel DHCP).<br></div></div></div>

--0000000000006a845605f731c9f3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM2hQG9do_fAOaKvRd5TE%2BMvaW0ywJWbbTbT_2M_6GojBDgemg>