mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-18 07:50:38 +00:00
Uki upgrade (#182)
This commit is contained in:
@@ -35,7 +35,7 @@ const (
|
||||
|
||||
// ImageSource represents the source from where an image is created for easy identification
|
||||
type ImageSource struct {
|
||||
source string
|
||||
source string `yaml:"source"`
|
||||
srcType string
|
||||
}
|
||||
|
||||
|
@@ -202,7 +202,6 @@ func (u *UpgradeSpec) Sanitize() error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (u *UpgradeSpec) ShouldReboot() bool { return u.Reboot }
|
||||
func (u *UpgradeSpec) ShouldShutdown() bool { return u.PowerOff }
|
||||
|
||||
@@ -526,8 +525,10 @@ func (i *InstallUkiSpec) GetPartitions() ElementalPartitions { return i.Partitio
|
||||
func (i *InstallUkiSpec) GetExtraPartitions() PartitionList { return i.ExtraPartitions }
|
||||
|
||||
type UpgradeUkiSpec struct {
|
||||
Reboot bool `yaml:"reboot,omitempty" mapstructure:"reboot"`
|
||||
PowerOff bool `yaml:"poweroff,omitempty" mapstructure:"poweroff"`
|
||||
Active Image `yaml:"system,omitempty" mapstructure:"system"`
|
||||
Reboot bool `yaml:"reboot,omitempty" mapstructure:"reboot"`
|
||||
PowerOff bool `yaml:"poweroff,omitempty" mapstructure:"poweroff"`
|
||||
EfiPartition *Partition `yaml:"efi-partition,omitempty" mapstructure:"efi-partition"`
|
||||
}
|
||||
|
||||
func (i *UpgradeUkiSpec) Sanitize() error {
|
||||
|
Reference in New Issue
Block a user