From e713043ffd4c8072891303f42799d2fae6404335 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Mon, 4 Sep 2023 15:12:10 +0400 Subject: [PATCH] feat: set environment variables early in the boot Fixes #7696 This allows to set env variables from `talos.environment=` command line arg. Signed-off-by: Andrey Smirnov (cherry picked from commit d91b5b3a31188d64cbc5ad8385000fae0fcf55e5) --- .../app/machined/pkg/runtime/v1alpha1/v1alpha1_sequencer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_sequencer.go b/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_sequencer.go index 126a5170bf..141057f3e0 100644 --- a/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_sequencer.go +++ b/internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_sequencer.go @@ -79,6 +79,7 @@ func (*Sequencer) Initialize(r runtime.Runtime) []runtime.Phase { "etc", CreateSystemCgroups, CreateOSReleaseFile, + SetUserEnvVars, ).Append( "machined", StartMachined, @@ -105,6 +106,7 @@ func (*Sequencer) Initialize(r runtime.Runtime) []runtime.Phase { "etc", CreateSystemCgroups, CreateOSReleaseFile, + SetUserEnvVars, ).Append( "earlyServices", StartUdevd,