FDI - /usr/bin/discovery-script and KCL_FDI_SCRIPT

Hi,

The contents of the script /usr/bin/discovery-script in the discovery image suggest that somehow we could set the variable KCL_FDI_SCRIPT with the content of a custom script. Is there a way to inject a custom script that is executed before kexec is launched? I don’t find documentation about this anywhere.
I’m using fdi v3.5.7.

Tks

Answering my own question, the fdi.script kernel option does that.

2 Likes

Hi @johnnys

Thanks for returning with the solution. This helps other community members troubleshoot similar issues. Glad you were able to solve this yourself.

For future reference, there are some documentation resources on provisioning and discovery here:
http://docs.theforeman.org/guides/build/doc-Provisioning_Guide/index-foreman.html#configuring-the-discovery-service

This option was introduced in version 15.
https://theforeman.org/plugins/foreman_discovery/15.0/index.html#5.4Runningarbitrarycommandsafterboot