diff options
author | Héctor Orón Martínez <zumbi@debian.org> | 2018-11-06 17:39:01 +0100 |
---|---|---|
committer | Héctor Orón Martínez <zumbi@debian.org> | 2018-11-06 17:39:01 +0100 |
commit | 1d3663fc3a861188bbf4343d1ffe5767e9815c57 (patch) | |
tree | a6ef971537c9531585a19df1c9849daf192b26ae /commands.go | |
parent | a3819b2c8c823955bb053d5a34da27c94aef4d47 (diff) |
New upstream version 1.0.0+git20181105.b02e058
Diffstat (limited to 'commands.go')
-rw-r--r-- | commands.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/commands.go b/commands.go index 96e2de1..aa562e3 100644 --- a/commands.go +++ b/commands.go @@ -69,6 +69,12 @@ func (w *commandWrapper) flush() { func NewChrootCommandForContext(context DebosContext) Command { c := Command{Architecture: context.Architecture, Chroot: context.Rootdir, ChrootMethod: CHROOT_METHOD_NSPAWN} + if context.EnvironVars != nil { + for k, v := range context.EnvironVars { + c.AddEnv(fmt.Sprintf("%s=%s", k, v)) + } + } + if context.Image != "" { path, err := RealPath(context.Image) if err == nil { |