From 9696ce75030e26d181ff41583bc547bc05932844 Mon Sep 17 00:00:00 2001 From: Mauro Morales Date: Mon, 6 May 2024 14:59:21 +0200 Subject: [PATCH] Add missing keys to Install struct Signed-off-by: Mauro Morales --- pkg/config/config.go | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 1eff757..b63a407 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -33,19 +33,23 @@ const ( ) type Install struct { - Auto bool `yaml:"auto,omitempty"` - Reboot bool `yaml:"reboot,omitempty"` - NoFormat bool `yaml:"no-format,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"` - Source string `yaml:"source,omitempty"` - EphemeralMounts []string `yaml:"ephemeral_mounts,omitempty"` - BindMounts []string `yaml:"bind_mounts,omitempty"` + Auto bool `yaml:"auto,omitempty"` + Reboot bool `yaml:"reboot,omitempty"` + NoFormat bool `yaml:"no-format,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"` + Source string `yaml:"source,omitempty"` + EphemeralMounts []string `yaml:"ephemeral_mounts,omitempty"` + BindMounts []string `yaml:"bind_mounts,omitempty"` + Partitions v1.ElementalPartitions `yaml:"partitions,omitempty" mapstructure:"partitions"` + Active v1.Image `yaml:"system,omitempty" mapstructure:"system"` + Recovery v1.Image `yaml:"recovery-system,omitempty" mapstructure:"recovery-system"` + Passive v1.Image `yaml:"passive,omitempty" mapstructure:"recovery-system"` } func NewConfig(opts ...GenericOptions) *Config {