]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
kernel-install: Add kernel version to title (#31581)
authorGuilhem Lettron <guilhem@barpilot.io>
Sun, 3 Mar 2024 12:36:57 +0000 (13:36 +0100)
committerGitHub <noreply@github.com>
Sun, 3 Mar 2024 12:36:57 +0000 (12:36 +0000)
When using uki, kernel installations always have the same name in
systemd-boot menu.

Signed-off-by: Guilhem Lettron <guilhem@barpilot.io>
src/kernel-install/90-loaderentry.install.in

index a52dd812e434ec9e12fc7ab4e71a87275ce64f9a..02435a31ddd00b7431bd0233ec3716a3e5684423 100755 (executable)
@@ -66,7 +66,7 @@ elif [ -f /usr/lib/os-release ]; then
     . /usr/lib/os-release
 fi
 
-[ -n "$PRETTY_NAME" ] || PRETTY_NAME="Linux $KERNEL_VERSION"
+[ -n "$PRETTY_NAME" ] || PRETTY_NAME="Linux"
 
 SORT_KEY="$IMAGE_ID"
 [ -z "$SORT_KEY" ] && SORT_KEY="$ID"
@@ -182,7 +182,7 @@ mkdir -p "${LOADER_ENTRY%/*}" || {
 {
     echo "# Boot Loader Specification type#1 entry"
     echo "# File created by $0 (systemd {{GIT_VERSION}})"
-    echo "title      $PRETTY_NAME"
+    echo "title      $PRETTY_NAME $KERNEL_VERSION"
     echo "version    $KERNEL_VERSION"
     if [ "$ENTRY_TOKEN" = "$MACHINE_ID" ]; then
         # See similar logic above for the systemd.machine_id= kernel command line option