lang: core: embedded: provisioner: Support exec handoff

Could be used for any tool, but mgmt is an obvious possibility.

I should check this code more, but it's roughly right and I'm sure it
will get refactored more when I build opt-in provisioning and so on.
This commit is contained in:
James Shubin
2025-06-08 21:16:54 -04:00
parent 582cea31b0
commit 777ea6115b
3 changed files with 79 additions and 36 deletions

View File

@@ -167,6 +167,10 @@ type localArgs struct {
// other or the base installation packages.
Packages []string `arg:"--packages,separate" help:"list of additional distro packages to install" func:"cli_packages"`
// HandoffExec specifies that we want to handoff to this machine by
// running a single exec on firstboot. Usually an `mgmt run` command.
HandoffExec string `arg:"--handoff-exec" help:"exec command to run on firstboot" func:"cli_handoff_exec"` // eg: mgmt run ...
// HandoffCode specifies that we want to handoff to this machine with a
// static code deploy bolus. This is useful for isolated, one-time runs.
HandoffCode string `arg:"--handoff-code" help:"code dir to handoff to host" func:"cli_handoff_code"` // eg: /etc/mgmt/