diff --git a/pkg/config/config.go b/pkg/config/config.go index ddfb0d7..17690e7 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -18,13 +18,15 @@ import ( ) type Install struct { - Auto bool `yaml:"auto,omitempty"` - Reboot bool `yaml:"reboot,omitempty"` - Device string `yaml:"device,omitempty"` - Poweroff bool `yaml:"poweroff,omitempty"` - GrubOptions map[string]string `yaml:"grub_options,omitempty"` - Bundles Bundles `yaml:"bundles,omitempty"` - Encrypt []string `yaml:"encrypted_partitions,omitempty"` + Auto bool `yaml:"auto,omitempty"` + Reboot bool `yaml:"reboot,omitempty"` + Device string `yaml:"device,omitempty"` + Poweroff bool `yaml:"poweroff,omitempty"` + GrubOptions map[string]string `yaml:"grub_options,omitempty"` + Bundles Bundles `yaml:"bundles,omitempty"` + Encrypt []string `yaml:"encrypted_partitions,omitempty"` + SkipEncryptCopyPlugins bool `yaml:"skip_copy_kcrypt_plugin,omitempty"` + Env []string `yaml:"env,omitempty"` } type Config struct { diff --git a/pkg/utils/sh.go b/pkg/utils/sh.go index 25758ec..428d184 100644 --- a/pkg/utils/sh.go +++ b/pkg/utils/sh.go @@ -10,7 +10,9 @@ import ( ) func SH(c string) (string, error) { - o, err := exec.Command("/bin/sh", "-c", c).CombinedOutput() + cmd := exec.Command("/bin/sh", "-c", c) + cmd.Env = os.Environ() + o, err := cmd.CombinedOutput() return string(o), err }