diff --git a/20-grub.install b/20-grub.install index 492c9ac..30e5d5b 100755 --- a/20-grub.install +++ b/20-grub.install @@ -173,6 +173,12 @@ case "$COMMAND" in ;; remove) + # If the boot entry type is type2, we are not removing the BLS entry + if [[ "x${KERNEL_INSTALL_BOOT_ENTRY_TYPE}" = "xtype2" ]]; then + [ "${KERNEL_INSTALL_VERBOSE}" -gt 0 ] && echo "The boot entry type is type2. Skip removing BLS entry." + exit 0 + fi + if [[ "x${GRUB_ENABLE_BLSCFG}" = "xtrue" ]] || [[ ! -f /sbin/new-kernel-pkg ]]; then BLS_TARGET="${BLS_DIR}/${MACHINE_ID}-${KERNEL_VERSION}.conf" BLS_FAKE_TARGET="${BLS_DIR}/ffffffffffffffffffffffffffffffff-${KERNEL_VERSION}.conf" diff --git a/grub2.spec b/grub2.spec index f549e12..dc2b874 100644 --- a/grub2.spec +++ b/grub2.spec @@ -16,7 +16,7 @@ Name: grub2 Epoch: 1 Version: 2.06 -Release: 113%{?dist} +Release: 114%{?dist} Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -538,6 +538,10 @@ fi %endif %changelog +* Thu Aug 28 2025 Leo Sandoval 2.06-114 +- 20-grub.install: Skip BLS removal when entry type is type2 +- Resolves: #RHEL-108008 + * Thu Aug 7 2025 Nicolas Frayer 2.06-113 - sbat: add new sbat entry for centos - Resolves: #RHEL-108060