Skip to content

Update boot.cfg.j2 to use custom ${boot_domain}#1637

Open
TSc2end wants to merge 1 commit into
netbootxyz:developmentfrom
TSc2end:development
Open

Update boot.cfg.j2 to use custom ${boot_domain}#1637
TSc2end wants to merge 1 commit into
netbootxyz:developmentfrom
TSc2end:development

Conversation

@TSc2end
Copy link
Copy Markdown

@TSc2end TSc2end commented Jun 15, 2025

fix local-vars.ipxe can't overwrite ${boot_domain}

details: https://github.com/orgs/netbootxyz/discussions/1451

fix local-vars.ipxe can't overwrite ${boot_domain}
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables the boot_domain variable to be overridden via local-vars.ipxe, fixing an issue where custom boot domains couldn't be set locally. The change uses conditional assignment (isset ${boot_domain} ||) to only set the default value if the variable hasn't already been defined.

  • Converted the unconditional set boot_domain assignment to a conditional isset ${boot_domain} || set boot_domain pattern
  • Updated the comment to clarify that this variable can be overridden in local-vars.ipxe

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +7 to +8
# set location of custom boot domain, override in local-vars.ipxe
isset ${boot_domain} || set boot_domain {{ boot_domain }}
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the boot_domain variable can now be overridden in local-vars.ipxe (similar to live_endpoint and boot_timeout), it should also be documented in the local-vars.ipxe.j2 template file. Consider adding an example entry like:

Sets the boot domain

#set boot_domain boot.mydomain.com

This would be consistent with how live_endpoint (line 17) and boot_timeout (line 20) are documented in roles/netbootxyz/templates/local-vars.ipxe.j2.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants