From 42ac5cd0c2ef610f055afb208384e60fc9389e82 Mon Sep 17 00:00:00 2001 From: Artem Chernyshev Date: Wed, 8 May 2024 16:18:48 +0300 Subject: [PATCH] fix: check for `nil` machine config during installation Otherwise we get `nil reference` exception during maintenance mode upgrade with partial machine configs. Signed-off-by: Artem Chernyshev --- cmd/installer/cmd/installer/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/installer/cmd/installer/install.go b/cmd/installer/cmd/installer/install.go index c65069617d..a70fadb76d 100644 --- a/cmd/installer/cmd/installer/install.go +++ b/cmd/installer/cmd/installer/install.go @@ -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 } }