lifecycle: expose INTERFACES_FILE env var to executors
This commit is contained in:
parent
0669e897fd
commit
9e4e17707f
4 changed files with 8 additions and 4 deletions
|
|
@ -23,6 +23,7 @@ struct lif_execute_opts {
|
|||
bool verbose;
|
||||
bool mock;
|
||||
const char *executor_path;
|
||||
const char *interfaces_file;
|
||||
};
|
||||
|
||||
extern bool lif_execute_fmt(const struct lif_execute_opts *opts, char *const envp[], const char *fmt, ...);
|
||||
|
|
|
|||
|
|
@ -233,6 +233,9 @@ lif_lifecycle_run_phase(const struct lif_execute_opts *opts, struct lif_interfac
|
|||
if (opts->verbose)
|
||||
lif_environment_push(&envp, "VERBOSE", "1");
|
||||
|
||||
if (opts->interfaces_file)
|
||||
lif_environment_push(&envp, "INTERFACES_FILE", opts->interfaces_file);
|
||||
|
||||
struct lif_node *iter;
|
||||
bool did_address = false, did_gateway = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue