kernel-install/90-loaderentry.install: print message if quiting (#37522)

60-ukify.install prints a message like this, and it is quite useful when
trying to figure out what is going on.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2025-05-21 09:55:27 +02:00
committed by GitHub
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -26,7 +26,11 @@ ENTRY_DIR_ABS="${3:?}"
KERNEL_IMAGE="$4"
INITRD_OPTIONS_SHIFT=4
[ "$KERNEL_INSTALL_LAYOUT" = "bls" ] || exit 0
if [ "$KERNEL_INSTALL_LAYOUT" != "bls" ]; then
[ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && \
echo "KERNEL_INSTALL_LAYOUT=$KERNEL_INSTALL_LAYOUT, quitting."
exit 0
fi
MACHINE_ID="${KERNEL_INSTALL_MACHINE_ID:?}"
ENTRY_TOKEN="${KERNEL_INSTALL_ENTRY_TOKEN:?}"
+3 -1
View File
@@ -787,7 +787,9 @@ static int context_ensure_layout(Context *c) {
/* There's no metadata in $BOOT_ROOT, and apparently no entry token directory installed? Then we
* really don't know anything. */
c->layout = LAYOUT_OTHER;
log_debug("Entry-token directory not found, using layout=%s.", layout_to_string(c->layout));
log_debug("Entry-token directory %s not found, using layout=%s.",
entry_token_path,
layout_to_string(c->layout));
return 0;
}