Skip to content

Commit

Permalink
Recovery back to ext2 by default
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany committed Jan 29, 2024
1 parent b2116ea commit e14ae3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ func NewInstallSpec(cfg v1.Config) *v1.InstallSpec {
}

recoverySystem.Source = system
recoverySystem.FS = constants.SquashFs
recoverySystem.Label = ""
recoverySystem.FS = constants.LinuxImgFs
recoverySystem.Label = constants.SystemLabel
recoverySystem.File = filepath.Join(constants.RecoveryDir, constants.RecoveryImgFile)

return &v1.InstallSpec{
Expand Down
2 changes: 2 additions & 0 deletions pkg/types/v1/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ func (i *InstallSpec) Sanitize() error {
// Set default label for non squashfs images
if i.RecoverySystem.FS != constants.SquashFs && i.RecoverySystem.Label == "" {
i.RecoverySystem.Label = constants.SystemLabel
} else if i.RecoverySystem.FS == constants.SquashFs {
i.RecoverySystem.Label = ""
}

// Check for extra partitions having set its size to 0
Expand Down

0 comments on commit e14ae3e

Please sign in to comment.