summaryrefslogtreecommitdiff
path: root/commands.go
diff options
context:
space:
mode:
authorHéctor Orón Martínez <zumbi@debian.org>2018-11-06 17:39:01 +0100
committerHéctor Orón Martínez <zumbi@debian.org>2018-11-06 17:39:01 +0100
commit1d3663fc3a861188bbf4343d1ffe5767e9815c57 (patch)
treea6ef971537c9531585a19df1c9849daf192b26ae /commands.go
parenta3819b2c8c823955bb053d5a34da27c94aef4d47 (diff)
New upstream version 1.0.0+git20181105.b02e058
Diffstat (limited to 'commands.go')
-rw-r--r--commands.go6
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 {