[ipxe-devel] Passing parameters from PXELinux to iPXE
Christian Nilsson
nikize at gmail.com
Sat Aug 8 02:47:10 UTC 2020
On Fri, 7 Aug 2020, 21:43 Robert Socha, <socha at socha.it> wrote:
> Hi,
>
> This is more user-level question. But for last few days I'm unable to
> post question via forum.ipxe.org.
>
> I wonder if this supported option (passing parameters from PXELinux to
> iPXE)
>
>
> I have PXELinux boot:
>
> LABEL startipxe
> KERNEL ipxe.lkrn
> APPEND set MYVAR some-data
>
> And from chain loaded ipxe with embed script:
>
> #!ipxe
> echo MYVAR: ${MYVAR}
> ... other stuff
>
>
>
> I was unable to make this work (PXElinux from Ubuntu 20.04 syslinux
> package).
>
> I solved this for myself by some small hack in ipxe code.
>
> But I wonder if this should works out of the box?
>
> Best regards
> --
> Robert Socha
>
> _______________________________________________
> ipxe-devel mailing list
> ipxe-devel at lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo/ipxe-devel
And so what actually happen when you use that append?
Any error message or similar that is causing you issues?
>From memory, any appended script will make the "autoboot" run that script,
instead of the default DHCP and before all that any embedded script of
course runs first? Have you checked the autoboot code? And what is the
"hack" that you have made?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20200808/a0ecccbd/attachment.htm>
More information about the ipxe-devel
mailing list