From 9e51d73b58af703de08a20d91d7c1577704c76d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20S=C3=A1nchez-Beato?= Date: Mon, 24 Oct 2022 12:21:46 +0100 Subject: [PATCH] boot/seal: add debug traces for bootchains --- boot/seal.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/seal.go b/boot/seal.go index b8f13bc8a99..c9cd880a0a4 100644 --- a/boot/seal.go +++ b/boot/seal.go @@ -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{ @@ -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...))