15a2072
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
15a2072
From: Javier Martinez Canillas <javierm@redhat.com>
15a2072
Date: Thu, 10 May 2018 10:52:11 +0200
15a2072
Subject: [PATCH] Add version field to BLS generated by grub2-switch-to-blscfg
15a2072
15a2072
The version field is present in the BLS fragments that are shipped in the
15a2072
kernel packages, so add it to the BLS generated by grub2-switch-to-blscfg
15a2072
for consistency.
15a2072
15a2072
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
15a2072
---
15a2072
 util/grub-switch-to-blscfg.in | 3 +++
15a2072
 1 file changed, 3 insertions(+)
15a2072
15a2072
diff --git a/util/grub-switch-to-blscfg.in b/util/grub-switch-to-blscfg.in
15a2072
index bc28053cd30..89487ad611c 100644
15a2072
--- a/util/grub-switch-to-blscfg.in
15a2072
+++ b/util/grub-switch-to-blscfg.in
15a2072
@@ -190,12 +190,14 @@ mkbls() {
15a2072
     local datetime=$1 && shift
15a2072
 
15a2072
     local debugname=""
15a2072
+    local debugid=""
15a2072
     local flavor=""
15a2072
 
15a2072
     if [[ "$kernelver" == *\+* ]] ; then
15a2072
         local flavor=-"${kernelver##*+}"
15a2072
         if [[ "${flavor}" == "-debug" ]]; then
15a2072
             local debugname=" with debugging"
15a2072
+            local debugid="-debug"
15a2072
         fi
15a2072
     fi
15a2072
     (
15a2072
@@ -203,6 +205,7 @@ mkbls() {
15a2072
 
15a2072
         cat <
15a2072
 title ${NAME} (${kernelver}) ${VERSION}${debugname}
15a2072
+version ${kernelver}${debugid}
15a2072
 linux /vmlinuz-${kernelver}
15a2072
 initrd /initramfs-${kernelver}.img
15a2072
 options \$kernelopts