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>
This commit is contained in:
Javier Martinez Canillas 2018-03-19 16:21:50 +01:00
parent 9ecbabc75e
commit 2531049324
No known key found for this signature in database
GPG Key ID: C751E590D63F3D69
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@ fi
cat >${output} <<EOF cat >${output} <<EOF
title ${NAME} (${kernelver}) ${VERSION}${debugname} title ${NAME} (${kernelver}) ${VERSION}${debugname}
version ${kernelver}
linux ${bootprefix}/vmlinuz-${kernelver} linux ${bootprefix}/vmlinuz-${kernelver}
initrd ${bootprefix}/initramfs-${kernelver}.img initrd ${bootprefix}/initramfs-${kernelver}.img
options \$kernelopts options \$kernelopts

View File

@ -1875,6 +1875,9 @@ fi
# #
# #
%changelog %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 * Mon Mar 19 2018 Jeremy Cline <jeremy@jcline.org> - 4.16.0-0.rc6.git0.1
- Linux v4.16-rc6 - Linux v4.16-rc6