Import from CS git
This commit is contained in:
parent
24359e4a87
commit
57dafed79b
@ -8,9 +8,19 @@ ARCH=$(uname -m)
|
|||||||
|
|
||||||
[[ -f /etc/default/grub ]] && . /etc/default/grub
|
[[ -f /etc/default/grub ]] && . /etc/default/grub
|
||||||
|
|
||||||
# Can't assume a BLS capable bootloader on ppc64
|
# Assume GRUB_ENABLE_BLSCFG is true if
|
||||||
if [[ x$GRUB_ENABLE_BLSCFG = xtrue &&
|
# GRUB_ENABLE_BLSCFG is not set, e.g. /etc/default/grub does not exist
|
||||||
$ARCH != "ppc64" && $ARCH != "ppc64le" ]]; then
|
# GRUB_ENABLE_BLSCFG is set to true
|
||||||
|
if [[ x$GRUB_ENABLE_BLSCFG != xfalse ]]; then
|
||||||
|
# Can't assume a BLS capable bootloader on ppc64
|
||||||
|
if [[ $ARCH = "ppc64" || $ARCH = "ppc64le" ]]; then
|
||||||
|
RUN_MKCONFIG="true"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# A traditional grub configuration file needs to be generated only in the case when
|
||||||
|
# the bootloaders are not capable of populating a menu entry from the BLS fragments.
|
||||||
|
if [[ $RUN_MKCONFIG != "true" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
Name: grub2
|
Name: grub2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.02
|
Version: 2.02
|
||||||
Release: 165%{?dist}
|
Release: 167%{?dist}
|
||||||
Summary: Bootloader with support for Linux, Multiboot and more
|
Summary: Bootloader with support for Linux, Multiboot and more
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -307,7 +307,10 @@ if [ "$1" = 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = 2 ]; then
|
if [ "$1" = 2 ]; then
|
||||||
/sbin/grub2-switch-to-blscfg --backup-suffix=.rpmsave &>/dev/null || :
|
if [ -f /etc/default/grub ]; then
|
||||||
|
! grep -q '^GRUB_ENABLE_BLSCFG=.*' /etc/default/grub && \
|
||||||
|
/sbin/grub2-switch-to-blscfg --backup-suffix=.rpmsave &>/dev/null || :
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%posttrans common
|
%posttrans common
|
||||||
@ -523,6 +526,14 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 24 2025 Leo Sandoval <lsandova@redhat.com> - 2.02-167
|
||||||
|
- 99-grub-mkconfig.install: fix condition allowing correct checks if GRUB_ENABLE_BLSCFG is not present
|
||||||
|
- Resolves: #RHEL-80168
|
||||||
|
|
||||||
|
* Wed Apr 23 2025 Leo Sandoval <lsandova@redhat.com> - 2.02-166
|
||||||
|
- Don't try to switch to a BLS config if GRUB_ENABLE_BLSCFG is already set
|
||||||
|
- Resolves: #RHEL-86913
|
||||||
|
|
||||||
* Thu Apr 17 2025 Nicolas Frayer <nfrayer@redhat.com> - 2.02-165
|
* Thu Apr 17 2025 Nicolas Frayer <nfrayer@redhat.com> - 2.02-165
|
||||||
- fs/ext2: Rework of OOB read patch
|
- fs/ext2: Rework of OOB read patch
|
||||||
- Resolves: #RHEL-86553
|
- Resolves: #RHEL-86553
|
||||||
|
Loading…
Reference in New Issue
Block a user