summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javierm@redhat.com>2018-03-19 16:21:50 +0100
committerJavier Martinez Canillas <javierm@redhat.com>2018-03-19 18:27:40 +0100
commit25310493240676e651a35be8f30aa9082eb5460d (patch)
tree2417595ef0cc7a517ed760c76be602d6044afa88
parent9ecbabc75e13e85b3fb00a12c6e0b89ba9b46e1d (diff)
downloadkernel-25310493240676e651a35be8f30aa9082eb5460d.tar.gz
kernel-25310493240676e651a35be8f30aa9082eb5460d.tar.xz
kernel-25310493240676e651a35be8f30aa9082eb5460d.zip
Include version field to generated BLS configuration fragment
The BootLoaderSpec defines an optional version field that contains a human readable version string for the menu item. This can be used by bootloaders to set the boot menu item names instead of the optional title field. For example the zipl bootloader used by s390x architecture doesn't support names that contains spaces, so it uses the kernel version as the item name. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
-rwxr-xr-xgenerate_bls_conf.sh1
-rw-r--r--kernel.spec3
2 files changed, 4 insertions, 0 deletions
diff --git a/generate_bls_conf.sh b/generate_bls_conf.sh
index 8d9ec0699..fa84eae5a 100755
--- a/generate_bls_conf.sh
+++ b/generate_bls_conf.sh
@@ -18,6 +18,7 @@ fi
cat >${output} <<EOF
title ${NAME} (${kernelver}) ${VERSION}${debugname}
+version ${kernelver}
linux ${bootprefix}/vmlinuz-${kernelver}
initrd ${bootprefix}/initramfs-${kernelver}.img
options \$kernelopts
diff --git a/kernel.spec b/kernel.spec
index ddb294fd2..b634f5b3c 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1875,6 +1875,9 @@ fi
#
#
%changelog
+* Mon Mar 19 2018 Javier Martinez Canillas <javierm@redhat.com>
+- Include version field to generated BLS configuration fragment
+
* Mon Mar 19 2018 Jeremy Cline <jeremy@jcline.org> - 4.16.0-0.rc6.git0.1
- Linux v4.16-rc6