From: Zbigniew Jędrzejewski-Szmek Date: Tue, 20 May 2025 12:31:53 +0000 (+0200) Subject: kernel-install/90-loaderentry.install: print message if quiting because of KERNEL_INS... X-Git-Tag: v258-rc1~560^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15ff7830132480d904772a5ffe3372713c8e3e70;p=thirdparty%2Fsystemd.git kernel-install/90-loaderentry.install: print message if quiting because of KERNEL_INSTALL_LAYOUT 60-ukify.install prints a message like this, and it is quite useful when trying to figure out what is going on. --- diff --git a/src/kernel-install/90-loaderentry.install.in b/src/kernel-install/90-loaderentry.install.in index 832a82794ca..75c0b47acaa 100755 --- a/src/kernel-install/90-loaderentry.install.in +++ b/src/kernel-install/90-loaderentry.install.in @@ -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:?}"