Skip to content

Commit

Permalink
fix: check for nil machine config during installation
Browse files Browse the repository at this point in the history
Otherwise we get `nil reference` exception during maintenance mode
upgrade with partial machine configs.

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
  • Loading branch information
Unix4ever committed May 8, 2024
1 parent 1d29111 commit 42ac5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/installer/cmd/installer/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func runInstallCmd(ctx context.Context) (err error) {
}
}

if config.Machine().Install().LegacyBIOSSupport() {
if config.Machine() != nil && config.Machine().Install().LegacyBIOSSupport() {
options.LegacyBIOSSupport = true
}
}
Expand Down

0 comments on commit 42ac5cd

Please sign in to comment.