pub fn build_guest_wrapper(
req: &ExecRequest,
add_dir_labels: &[String],
) -> StringExpand description
Build the wrapper script that runs inside the guest:
- mounts each
--add-dirext4 image read-only by label - exports launch-plan-derived env vars (when target is LaunchPlan)
- exports CLI
--envvars (CLI overrides launch-plan) - cds into
working_dir(when target is LaunchPlan and itβs set) - execs the resolved command
add_dir_labels is the parallel list of ext4 labels assigned to each
AddDir (in the same order as req.add_dirs).
Env precedence (lowest β highest): launch-plan app.env β launch-plan
entrypoint.env β CLI --env. The first two are merged in
parse_launch_plan; CLI wins by being emitted last.