From a774b3d6c43863b632f211aa21e61cb48e2ee736 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 10 Feb 2022 14:27:22 +0100 Subject: [PATCH] kernel-install: search harder for kernel image/initrd drop-in dir If not explicitly configured, let's search a bit harder for the ENTRY_TOKEN, and let's try the machine ID, the IMAGE_ID and ID fields of /etc/os-release and finally "Default", all below potential $XBOOTLDR. (cherry picked from commit 6637cf9db67237857279262d93ee0e39023c5b85) Related: #2065061 --- src/kernel-install/kernel-install | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install index 75a31c62d4..c42c40592a 100755 --- a/src/kernel-install/kernel-install +++ b/src/kernel-install/kernel-install @@ -103,29 +103,50 @@ fi # for naming the .conf boot loader spec entry. Typically this is just the # machine ID, but it can be anything else, too, if we are told so. [ -z "$ENTRY_TOKEN" ] && [ -r /etc/kernel/entry-token ] && read -r ENTRY_TOKEN