Open Kipjr opened 2 years ago
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 use custom
as this is disabled by default:
https://github.com/netbootxyz/netboot.xyz/blob/43e2f303def858974f47160e1b657385477e7a9f/etc/netbootxyz/custom/README.md
On the custom/custom.ipxe
, you are "wrong", you can set this dir by var custom_templates_dir
. The default is xxx/custom
, this is explained in the documentation:
https://github.com/netbootxyz/netboot.xyz/blob/43e2f303def858974f47160e1b657385477e7a9f/etc/netbootxyz/custom/README.md
You 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.ipxe
A simple cheat for all this is to set the custom_url
var in boot.cfg (note that you need to include the filename if it's not custom.ipxe
)
set custom_url http://${boot_domain}
or
set custom_url http://${boot_domain}/fancy_name.ipxe
you need to build your own to use custom as this is disabled by default
@ikkemaniac
Is there a specific reason why it is disabled while custom_github_menus
is 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.
you need to build your own to use custom as this is disabled by default
@ikkemaniac Is there a specific reason why it is disabled while
custom_github_menus
is 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.
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.
you need to build your own to use custom as this is disabled by default
@ikkemaniac Is there a specific reason why it is disabled while
custom_github_menus
is 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.
custom_github_menus
is 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:
I want to minimize the amount of modified iPXE files so I only created
custom.ipxe
and modifiedboot.cfg
. However I cannot seem to get the menu itemcustom-user
inmenu.ipxe
. It looks like it is has two issues: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.ipxe
filecustom.ipxe
in the web environment, shouldn't line 137 innetbootxyz/netboot.xyz/blob/development/roles/netbootxyz/templates/menu/menu.ipxe.j2 be changed from
to