Skip to content

Commit a20ee43

Browse files
authored
Merge pull request #567 from gibmat/include-secure-boot-efi-error
Include underlying error when we cannot read an EFI variable
2 parents 4b5d46f + c2fc935 commit a20ee43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

incus-osd/internal/secureboot/efi_vars.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func UpdateSecureBootCerts(ctx context.Context, tarArchive string) (bool, error)
131131
func applySecureBootUpdates(ctx context.Context, varName string, newCerts map[string][]byte) (bool, error) {
132132
existingCerts, err := GetCertificatesFromVar(varName)
133133
if err != nil {
134-
return false, fmt.Errorf("failed to read EFI variable '%s'", varName)
134+
return false, fmt.Errorf("failed to read EFI variable %q: %w", varName, err)
135135
}
136136

137137
for certFingerprint, certContents := range newCerts {

0 commit comments

Comments
 (0)