Skip to content

Commit

Permalink
fix: automatically change rpi_4 board on upgrade
Browse files Browse the repository at this point in the history
As `rpi_4` was removed in Talos 1.5, automatically migrate to
`rpi_generic`.

Fixes #7632

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
  • Loading branch information
smira committed Aug 21, 2023
1 parent b56e8b7 commit ccfa8de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/installer/pkg/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ func Install(ctx context.Context, p runtime.Platform, mode Mode, opts *Options)
}

if opts.Board != constants.BoardNone {
// board 'rpi_4' was removed in Talos 1.5 in favor of `rpi_generic`
if opts.Board == "rpi_4" {
opts.Board = constants.BoardRPiGeneric
}

var b runtime.Board

b, err = board.NewBoard(opts.Board)
Expand Down

0 comments on commit ccfa8de

Please sign in to comment.