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-78104

Signed-off-by: Josue Hernandez <josherna@redhat.com>
This commit is contained in:
Josue Hernandez 2026-07-20 14:28:58 -06:00
parent 505400f4a8
commit 9ba2fa73f3
2 changed files with 5 additions and 4 deletions

View File

@ -671,7 +671,6 @@ cp docs/grub-dev.info \\\
$RPM_BUILD_ROOT%{_infodir}/grub2-dev.info \
install -d -m 0700 ${RPM_BUILD_ROOT}%{efi_esp_dir}/ \
install -d -m 0700 ${RPM_BUILD_ROOT}/boot/grub2/ \
install -d -m 0700 ${RPM_BUILD_ROOT}/boot/loader/entries \
install -d -m 0700 ${RPM_BUILD_ROOT}/boot/grub2/themes/system \
install -d -m 0700 ${RPM_BUILD_ROOT}%{_sysconfdir}/default \
install -d -m 0700 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig \
@ -689,7 +688,6 @@ ln -s ../boot/grub2/grub.cfg \\\
%defattr(-,root,root,-) \
%config(noreplace) %{_sysconfdir}/grub2.cfg \
%ghost %config(noreplace) %attr(0600,root,root)/boot/grub2/grub.cfg \
%dir %attr(0700,root,root)/boot/loader/entries \
%attr(0644,root,root) %config(noreplace) /etc/dnf/protected.d/grub2-%{1}.conf \
%ifarch ppc64le \
%dir %{_libdir}/grub/%{2}/ \
@ -723,7 +721,6 @@ ln -s ../boot/grub2/grub.cfg \\\
%endif \
%attr(0700,root,root)/boot/grub2/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/grub2/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/grub2/grubenv \

View File

@ -17,7 +17,7 @@
Name: grub2
Epoch: 1
Version: 2.12
Release: 52%{?dist}
Release: 53%{?dist}
Summary: Bootloader with support for Linux, Multiboot and more
License: GPL-3.0-or-later
URL: http://www.gnu.org/software/grub/
@ -606,6 +606,10 @@ fi
%endif
%changelog
* Mon Jul 20 2026 Josue Hernandez <josherna@redhat.com> - 2.12-53
- Remove creation of /boot/loader/entries
- Resolves: #RHEL-78104
* Fri Jul 17 2026 Marta Lewandowska <mlewando@redhat.com> - 2.12-52
- Add pesigcheck to spec
- Resolves: #RHEL-188361