Skip to content

Commit

Permalink
boot/seal: add debug traces for bootchains
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsosanchezbeato committed Oct 24, 2022
1 parent 8faf61f commit 9e51d73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boot/seal.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ func sealKeyToModeenvUsingSecboot(key, saveKey keys.EncryptionKey, model *assert
if err != nil {
return fmt.Errorf("cannot compose recovery boot chains: %v", err)
}
logger.Debugf("recovery bootchain:\n%+v", recoveryBootChains)

// build the run mode boot chains
bl, err := bootloader.Find(InitramfsUbuntuBootDir, &bootloader.Options{
Expand All @@ -236,6 +237,7 @@ func sealKeyToModeenvUsingSecboot(key, saveKey keys.EncryptionKey, model *assert
if err != nil {
return fmt.Errorf("cannot compose run mode boot chains: %v", err)
}
logger.Debugf("run mode bootchain:\n%+v", runModeBootChains)

pbc := toPredictableBootChains(append(runModeBootChains, recoveryBootChains...))

Expand Down

0 comments on commit 9e51d73

Please sign in to comment.