mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2026-04-25 15:05:50 +03:00
[GH-ISSUE #13] Unable to chain custom.ipxe using just boot.cfg and custom.ipxe #5
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-netbootxyz#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kipjr on GitHub (Mar 7, 2022).
Original GitHub issue: https://github.com/netbootxyz/docker-netbootxyz/issues/13
I want to minimize the amount of modified iPXE files so I only created
custom.ipxeand modifiedboot.cfg. However I cannot seem to get the menu itemcustom-userinmenu.ipxe. It looks like it is has two issues:1. Misconfigured setting for the Docker version which does not generate custom-user menu item
netbootxyz/netboot.xyz/blob/development/roles/netbootxyz/defaults/main.yml
custom_generate_menus: false
and this results in not creating a line in
netbootxyz/netboot.xyz/blob/development/roles/netbootxyz/templates/menu/menu.ipxe
with the resulting
menu.ipxefilecustom.ipxein the web environment, shouldn't line 137 innetbootxyz/netboot.xyz/blob/development/roles/netbootxyz/templates/menu/menu.ipxe.j2
be changed from
to
@ikkemaniac commented on GitHub (May 22, 2022):
Just ran into this myself.
On the build flag
custom_generate_menus: false, yes you are RIGHT about the workings. But it is explained in the documentation that you need to build your own to usecustomas this is disabled by default:github.com/netbootxyz/netboot.xyz@43e2f303de/etc/netbootxyz/custom/README.mdOn the
custom/custom.ipxe, you are "wrong", you can set this dir by varcustom_templates_dir. The default isxxx/custom, this is explained in the documentation:github.com/netbootxyz/netboot.xyz@43e2f303de/etc/netbootxyz/custom/README.mdYou can set that location to whatever you want. just keep in mind that this is NOT the same as going to the web interface and creating a new ipxe file that you name
custom.ipxeA simple cheat for all this is to set the
custom_urlvar in boot.cfg (note that you need to include the filename if it's notcustom.ipxe)set custom_url http://${boot_domain}or
set custom_url http://${boot_domain}/fancy_name.ipxe@Kipjr commented on GitHub (Jun 5, 2022):
@ikkemaniac
Is there a specific reason why it is disabled while
custom_github_menusis enabled?I would like to use this tool in a local environment (without permanent available network access) where building images or direct filesystem access is not possible.
@ikkemaniac commented on GitHub (Jun 5, 2022):
No freaking clue. Note that i'm not affiliated with this project.
I'd just build a custom ipxe to your liking on your favorite machine and copy that to your environment. Or use the custom_url.
@antonym commented on GitHub (Jun 5, 2022):
custom_github_menusis used when a GitHub user is set from the Utility menu or at local-vars.ipxe so that a menu can be loaded from GitHub directly:https://github.com/netbootxyz/netboot.xyz/blob/development/roles/netbootxyz/templates/menu/utils-pcbios-64.ipxe.j2#L78