diff --git a/cmd/test_efi_fde_compat/main.go b/cmd/test_efi_fde_compat/main.go index 567378f7..6d195340 100644 --- a/cmd/test_efi_fde_compat/main.go +++ b/cmd/test_efi_fde_compat/main.go @@ -156,7 +156,6 @@ func main() { fmt.Fprintln(os.Stderr) errs := unwrapCompoundError(err) fixable := true - ErrLoop: for _, err := range errs { e, ok := err.(*preinstall.WithKindAndActionsError) if !ok { @@ -167,13 +166,21 @@ func main() { fixable = false break } + fixableErr := false + ActionLoop: for _, action := range e.Actions { switch action { case preinstall.ActionContactOEM, preinstall.ActionContactOSVendor: - fixable = false - break ErrLoop + // Not fixable + default: + fixableErr = true + break ActionLoop } } + if !fixableErr { + fixable = false + break + } } if fixable { fmt.Fprintln(os.Stderr, "This platform may be suitable for FDE if the following problem is fixed:")