Skip to content

Commit

Permalink
secboot/bootstrap_container.go: fix naming in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
valentindavid authored and pedronis committed Feb 7, 2025
1 parent 2c14087 commit fe33a2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion secboot/bootstrap_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (m *mockKeyDataWriter) Commit() error {

func (m *MockBootstrappedContainer) AddKey(slotName string, newKey []byte) error {
if m.BootstrapKeyRemoved {
return fmt.Errorf("internal error: key resetter was a already finished")
return fmt.Errorf("internal error: bootstrapped container was a already finished")
}

_, ok := m.Slots[slotName]
Expand Down
2 changes: 1 addition & 1 deletion secboot/bootstrap_container_sb.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func slotNameOrDefault(slotName string) string {

func (bc *bootstrappedContainer) AddKey(slotName string, newKey []byte) error {
if bc.finished {
return fmt.Errorf("internal error: key resetter was a already finished")
return fmt.Errorf("internal error: bootstrapped container was a already finished")
}

if err := sbAddLUKS2ContainerUnlockKey(bc.devicePath, slotNameOrDefault(slotName), sb.DiskUnlockKey(bc.key), sb.DiskUnlockKey(newKey)); err != nil {
Expand Down

0 comments on commit fe33a2f

Please sign in to comment.