Drop brackets in version from grub menu items

i9 changed/i9/grubby-8.40-63.el9.inferit
Arkady L. Shane 1 year ago
parent 8afef338f5
commit 3208da74c4

@ -34,6 +34,7 @@ declare -a bls_id
[[ -f /etc/sysconfig/kernel ]] && . /etc/sysconfig/kernel
[[ -f /etc/os-release ]] && . /etc/os-release
PRETTY_VERSION="$(echo $VERSION | sed 's/(//g;s/)//g')"
read MACHINE_ID < /etc/machine-id
arch=$(uname -m)
@ -305,7 +306,7 @@ mkbls() {
fi
cat <<EOF
title ${NAME} (${kernelver}) ${VERSION}${debugname}
title ${NAME} (${kernelver}) ${PRETTY_VERSION}${debugname}
version ${kernelver}${debugid}
linux ${kernel}
initrd ${prefix}/initramfs-${kernelver}.img

@ -1,6 +1,6 @@
Name: grubby
Version: 8.40
Release: 63%{?dist}
Release: 63%{?dist}.inferit
Summary: Command line tool for updating bootloader configs
License: GPLv2+
URL: https://github.com/rhinstaller/grubby
@ -131,6 +131,9 @@ current boot environment.
%{_mandir}/man8/*.8*
%changelog
* Fri Oct 27 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 8.40-63.inferit
- Drop brackets in version from grub menu items
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 8.40-61
- Rebuilt for MSVSphere 9.1.

Loading…
Cancel
Save