Skip to content

eBPF-based security platform

init: Identify the failing image bootstrap substep

Michi Mutsuzakibc585706feee
diff --git a/util/image_runtime.c b/util/image_runtime.c
index 5f1f8ff9..de777f70 100644
--- a/util/image_runtime.c
+++ b/util/image_runtime.c
@@ -776,7 +776,8 @@ int shirudo_image_boot_keys(struct shirudo_trusted_set *set)
break;
if (i == set->n) {
if (set->n == SHIRUDO_KEYS_MAX)
- return -E2BIG;
+ return boot_keys_error("add runtime certificate to "
+ "trusted set", -E2BIG);
set->certs[set->n++] = primary;
}
image.boot_target_valid = true;