summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot/loader.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2020-10-22 22:04:57 -0700
committergVisor bot <gvisor-bot@google.com>2020-10-22 22:07:06 -0700
commit293877cf647ac3e900f0ae15061317a512bba7a0 (patch)
treeca069b423d9baf52ac3fb583386ba303c93e1f06 /runsc/boot/loader.go
parentcc772f3d54d46b65c663c8cf7812103df31f17d3 (diff)
Load spec during "runsc start" to process flag overrides
Subcontainers are only configured when the container starts, however because start doesn't load the spec, flag annotations that may override flags were not getting applied to the configuration. Updates #3494 PiperOrigin-RevId: 338610953
Diffstat (limited to 'runsc/boot/loader.go')
-rw-r--r--runsc/boot/loader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/boot/loader.go b/runsc/boot/loader.go
index 8ad000497..a971d20ec 100644
--- a/runsc/boot/loader.go
+++ b/runsc/boot/loader.go
@@ -737,7 +737,7 @@ func (l *Loader) createContainerProcess(root bool, cid string, info *containerIn
return nil, err
}
- // Add the HOME enviroment variable if it is not already set.
+ // Add the HOME environment variable if it is not already set.
var envv []string
if kernel.VFS2Enabled {
envv, err = user.MaybeAddExecUserHomeVFS2(ctx, info.procArgs.MountNamespaceVFS2,