summaryrefslogtreecommitdiffstats
path: root/generate_bls_conf.sh
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 /generate_bls_conf.sh
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>
Diffstat (limited to 'generate_bls_conf.sh')
-rwxr-xr-xgenerate_bls_conf.sh1
1 files changed, 1 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