mirror of
https://github.com/systemd/systemd.git
synced 2025-01-05 13:18:06 +03:00
nspawn: set container_host env vars before user arguments
Allows users on the command line to seamlessly override $container_host_* just like they can override $container_id and $container
This commit is contained in:
parent
a9c9b18a95
commit
ed4512d009
@ -3191,7 +3191,7 @@ static int inner_child(
|
||||
if (asprintf((char **)(envp + n_env++), "NOTIFY_SOCKET=%s", NSPAWN_NOTIFY_SOCKET_PATH) < 0)
|
||||
return log_oom();
|
||||
|
||||
env_use = strv_env_merge(3, envp, arg_setenv, os_release_pairs);
|
||||
env_use = strv_env_merge(3, envp, os_release_pairs, arg_setenv);
|
||||
if (!env_use)
|
||||
return log_oom();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user