]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "kernel-install: Add kernel version to title (#31581)"
authorLennart Poettering <lennart@poettering.net>
Wed, 3 Apr 2024 16:00:04 +0000 (18:00 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Apr 2024 17:45:39 +0000 (02:45 +0900)
This reverts commit 85b774de49caff8be819f021740dd680ba76ab77.

src/kernel-install/90-loaderentry.install.in

index 610460b829d52c9995d746a9530ea4e892f9d53f..766d32159502fd99c678e5db9123672edbdddb72 100755 (executable)
@@ -66,7 +66,7 @@ elif [ -f /usr/lib/os-release ]; then
     . /usr/lib/os-release
 fi
 
-[ -n "$PRETTY_NAME" ] || PRETTY_NAME="Linux"
+[ -n "$PRETTY_NAME" ] || PRETTY_NAME="Linux $KERNEL_VERSION"
 
 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 {{VERSION_TAG}})"
-    echo "title      $PRETTY_NAME $KERNEL_VERSION"
+    echo "title      $PRETTY_NAME"
     echo "version    $KERNEL_VERSION"
     if [ "$ENTRY_TOKEN" = "$MACHINE_ID" ]; then
         # See similar logic above for the systemd.machine_id= kernel command line option