mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-04-28 03:32:27 +00:00
Bad refactoring, these should be active not cos (#278)
* Bad refactoring, these should be active not cos Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * State should be called statereset everywhere autoreset was introduced with UKI but we want parity with GRUB Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> --------- Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
parent
69756e3020
commit
8f68b870d3
@ -83,7 +83,7 @@ func selectBootEntrySystemd(cfg *config.Config, entry string) error {
|
||||
|
||||
}
|
||||
originalEntries := entries
|
||||
// when there are only 4 entries, we can assume they are either cos (which will be replaced eventually), fallback, recovery or autoreset
|
||||
// when there are only 4 entries, we can assume they are either cos (which will be replaced eventually), fallback, recovery or statereset
|
||||
if len(entries) == len(cnst.UkiDefaultMenuEntries()) {
|
||||
entries = cnst.UkiDefaultMenuEntries()
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ func (i *InstallAction) Run() (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, role := range constants.UkiDefaultMenuEntries() {
|
||||
for _, role := range []string{"active", "passive", "recovery", "statereset"} {
|
||||
if err = copyArtifactSetRole(i.cfg.Fs, i.spec.Partitions.EFI.MountPoint, UnassignedArtifactRole, role, i.cfg.Logger); err != nil {
|
||||
i.cfg.Logger.Errorf("installing the new artifact set as %s: %s", role, err.Error())
|
||||
return fmt.Errorf("installing the new artifact set as %s: %w", role, err)
|
||||
|
Loading…
Reference in New Issue
Block a user