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