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
committerJeremy Cline <jeremy@jcline.org>2018-03-19 11:50:17 -0700
commitc207367127b529b2e2acf30727e161e7cf0525c4 (patch)
tree3bf11fa244322a21eb3bc297f17c1f920cbb0bfe /generate_bls_conf.sh
parent20dbc319c315be9d4c84463c50dcc4dae2f17ad7 (diff)
downloadkernel-c207367127b529b2e2acf30727e161e7cf0525c4.tar.gz
kernel-c207367127b529b2e2acf30727e161e7cf0525c4.tar.xz
kernel-c207367127b529b2e2acf30727e161e7cf0525c4.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