From f0fde6b5ea930228a2d1cc61044b375b572421ea Mon Sep 17 00:00:00 2001 From: Simon de Vlieger Date: Mon, 3 Aug 2026 18:47:54 +0200 Subject: [PATCH] 90-loaderentry: use KERNEL_INSTALL_ENTRY_NAME Replace the hardcoded $ENTRY_TOKEN-$KERNEL_VERSION pattern with $KERNEL_INSTALL_ENTRY_NAME for the BLS Type#1 loader entry filename. Falls back to $ENTRY_TOKEN-$KERNEL_VERSION when the variable is not set. --- src/kernel-install/90-loaderentry.install.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernel-install/90-loaderentry.install.in b/src/kernel-install/90-loaderentry.install.in index 66cfec8886..f791cab3c2 100755 --- a/src/kernel-install/90-loaderentry.install.in +++ b/src/kernel-install/90-loaderentry.install.in @@ -35,6 +35,7 @@ fi MACHINE_ID="${KERNEL_INSTALL_MACHINE_ID:?}" ENTRY_TOKEN="${KERNEL_INSTALL_ENTRY_TOKEN:?}" BOOT_ROOT="${KERNEL_INSTALL_BOOT_ROOT:?}" +ENTRY_NAME="${KERNEL_INSTALL_ENTRY_NAME:-$ENTRY_TOKEN-$KERNEL_VERSION}" [ -n "$BOOT_MNT" ] || BOOT_MNT="$(stat -c %m "$BOOT_ROOT")" if [ "$BOOT_MNT" = '/' ]; then @@ -45,7 +46,7 @@ fi KERNEL_DEST="$ENTRY_DIR_ABS/linux" KERNEL_ENTRY="$ENTRY_DIR/linux" -LOADER_ENTRY="$BOOT_ROOT/loader/entries/$ENTRY_TOKEN-$KERNEL_VERSION.conf" +LOADER_ENTRY="$BOOT_ROOT/loader/entries/$ENTRY_NAME.conf" case "$COMMAND" in remove)