netboot.xyz icon indicating copy to clipboard operation
netboot.xyz copied to clipboard

tftpmenu not loaded if tftp filename has a path component

Open abh opened this issue 3 years ago • 6 comments

I load ipxe over tftp from a path (ipxe/netboot.xyz.kpxe). If I'm not mistaken (which is very possible) that's what makes this line from netboot.xyz.j2 not match:

isset ${tftp-server} && iseq ${filename} {{ bootloader_filename }}.kpxe && goto tftpmenu ||

It's not clear to me what the iseq part is supposed to be accomplishing. I am guessing there are some filenames that shouldn't go to tftpmenu, but if so I'd suggest those should be called out rather than the opposite. (And if they shouldn't be going to tftpmenu, would they ever be running in a context with tftp-server set?).

I believe this section should be replaced with just a line like:

isset ${tftp-server} && goto tftpmenu || goto menu

(at least for my use case this fixed it so I can use MAC-[mac-address].ipxe).

abh avatar Mar 16 '22 01:03 abh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Apr 15 '22 03:04 github-actions[bot]

I don't have additional information, but the issue was real.

abh avatar Apr 15 '22 05:04 abh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 16 '22 02:05 github-actions[bot]

@antonym, am I misunderstanding how the code is supposed to work?

abh avatar May 16 '22 05:05 abh

I think there's something missing in the self-hosting instructions. I think all the images are actually supposed to be in a single directory on the tftp server? At which point, I'm not sure what the web service is for... And it seems like docker networking has changed so that using the docker container no-longer has any value, it can't open a connection back for responses.

kfsone avatar Nov 13 '23 19:11 kfsone

In the docker container, all of the images are in one folder.

kfsone avatar Nov 13 '23 19:11 kfsone