Skip to content

Commit c2fc935

Browse files
committed
incus-osd/secureboot: Include underlying error when we cannot read an EFI variable
Signed-off-by: Mathias Gibbens <mathias.gibbens@futurfusion.io>
1 parent 7d4a7a6 commit c2fc935

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)