Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boot variables for part/post scripts #417

Open
msteggink opened this issue Jun 4, 2024 · 2 comments
Open

Boot variables for part/post scripts #417

msteggink opened this issue Jun 4, 2024 · 2 comments

Comments

@msteggink
Copy link
Member

By default, the luna installer doesn't expose a lot of variables which can be used in the part script. However some variables are only filled in after the installer starts or not exported at all but they are known upfront.

For example LUNA_IMAGEFILE is filled in after the part script but when the node boots it is known, just not exported.

Could you make them available, e.g. in templ_nodeboot.cfg, so they can be picked up by the installer via /proc/cmdline:

luna.osimage={{ LUNA_OSIMAGENAME }}

Result should be something like

# cat /proc/cmdline
kernel root=luna luna.bootproto=static luna.mac=aa:bb:cc:dd:ee:ff luna.ip=10.141.0.1/24 luna.gw= {snip} initrd=initrd.img boot=ramdisk luna.osimage=compute-rhel-9.4

Or as export in the installer templ_install.cfg:

export LUNA_OSIMAGENAME={{ LUNA_OSIMAGENAME }}

There may be more which can be useful during boot:

  • osimage name
  • osimage distribution
  • osimage_osrelease
  • groupname
@aphmschonewille
Copy link
Member

not everything is available at the various stages in an attempt to be more optimized (overhead reduction). It would be helpful to have a list of variables to have so we can work towards it instead of trying to provide everything. I leave this one up to you.

-A

@aphmschonewille
Copy link
Member

did not hear about the subject for quite a while. would this still be useful or is there a list of to be exported variables?

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

No branches or pull requests

2 participants