Skip to content

Commit

Permalink
fixup! many: update secboot and use new key format
Browse files Browse the repository at this point in the history
  • Loading branch information
valentindavid committed Sep 13, 2024
1 parent 6a43b4c commit 7178818
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions secboot/encrypt_sb.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ func EnsureRecoveryKey(keyFile string, rkeyDevs []RecoveryKeyDevice) (keys.Recov
if err != nil {
return keys.RecoveryKey{}, fmt.Errorf("cannot find list keys for: %v", err)
}
// LUKS2 containers created with older snapd have no
// tokens, thus no named key slots.
hasOnlyLegacyKeys := len(slots) == 0
if hasOnlyLegacyKeys {
authzMethod := "keyring"
Expand Down

0 comments on commit 7178818

Please sign in to comment.