From 598f767eb63214527fb2e65201ed6607dfd8961c Mon Sep 17 00:00:00 2001 From: Josue Hernandez Date: Tue, 21 Jul 2026 11:30:18 -0600 Subject: [PATCH] Remove creation of /boot/loader/entries /boot/loader/entries is created by /lib/kernel/install.d/90-loaderentry.install which is provided by systemd-udev package and run when a new kernel is added if it doesn't exist Resolves: #RHEL-212729 Signed-off-by: Josue Hernandez --- grub.macros | 3 --- grub2.spec | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/grub.macros b/grub.macros index d519ca8..a008766 100755 --- a/grub.macros +++ b/grub.macros @@ -586,7 +586,6 @@ cp docs/grub-dev.info \\\ $RPM_BUILD_ROOT%{_infodir}/%{name}-dev.info \ install -d -m 0700 ${RPM_BUILD_ROOT}%{efi_esp_dir}/ \ install -d -m 0700 ${RPM_BUILD_ROOT}/boot/%{name}/ \ -install -d -m 0700 ${RPM_BUILD_ROOT}/boot/loader/entries \ install -d -m 0700 ${RPM_BUILD_ROOT}/boot/%{name}/themes/system \ install -d -m 0700 ${RPM_BUILD_ROOT}%{_sysconfdir}/default \ install -d -m 0700 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig \ @@ -604,7 +603,6 @@ ln -s ../boot/%{name}/grub.cfg \\\ %defattr(-,root,root,-) \ %config(noreplace) %{_sysconfdir}/%{name}.cfg \ %ghost %config(noreplace) %attr(0600,root,root)/boot/%{name}/grub.cfg \ -%dir %attr(0700,root,root)/boot/loader/entries \ %attr(0644,root,root) %config(noreplace) /etc/dnf/protected.d/%{name}-%{1}.conf \ %ifarch ppc64le \ %dir %{_libdir}/grub/%{2}/ \ @@ -638,7 +636,6 @@ ln -s ../boot/%{name}/grub.cfg \\\ %endif \ %attr(0700,root,root)/boot/%{name}/fonts \ %attr(0700,root,root)/usr/bin/gen_grub_cfgstub \ -%dir %attr(0700,root,root)/boot/loader/entries \ %ghost %config(noreplace) %attr(0600,root,root)/boot/%{name}/grub.cfg \ %ghost %config(noreplace) %verify(not mtime) %attr(0700,root,root)%{efi_esp_dir}/grub.cfg \ %config(noreplace) %verify(not size mode md5 mtime) /boot/%{name}/grubenv \ diff --git a/grub2.spec b/grub2.spec index 8a62d56..b927cbf 100644 --- a/grub2.spec +++ b/grub2.spec @@ -16,7 +16,7 @@ Name: grub2 Epoch: 1 Version: 2.06 -Release: 131%{?dist} +Release: 132%{?dist} Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -546,6 +546,10 @@ fi %endif %changelog +* Mon Jul 21 2026 Josue Hernandez - 2.06-132 +- Remove creation of /boot/loader/entries +- Resolves: #RHEL-212729 + * Mon Jul 06 2026 Rolv Apneseth - 2.06-131 - mdraid: fix metadata 1.0 detection in userspace utilities on IEEE1275 - grub-install: use search.fs_uuid for RAID1 on IEEE1275