Skip to content

Commit ea7aff5

Browse files
Thorsten Leemhuisvittyvk
authored andcommitted
move ownership of /lib/modules/<ver>/ to kernel-core
Upstream Status: RHEL-only ARK commit 040aef9b62235cd9f9b0bab99bc16257a8660253 JIRA: https://issues.redhat.com/browse/RHEL-21034 Ensure the directory /lib/modules/<ver>/ is removed when uninstalling a kernel by moving the ownership of /lib/modules/<ver>/ to kernel-core. Tested with rpm, dnf, and dnf5 on f38. Signed-off-by: Thorsten Leemhuis <fedora@leemhuis.info> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
1 parent 80852bc commit ea7aff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redhat/kernel.spec.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3653,15 +3653,15 @@ fi
36533653
%endif\
36543654
%attr(0600, root, root) /lib/modules/%{KVERREL}%{?3:+%{3}}/System.map\
36553655
%ghost %attr(0600, root, root) /boot/System.map-%{KVERREL}%{?3:+%{3}}\
3656+
%dir /lib/modules\
3657+
%dir /lib/modules/%{KVERREL}%{?3:+%{3}}\
36563658
/lib/modules/%{KVERREL}%{?3:+%{3}}/symvers.gz\
36573659
/lib/modules/%{KVERREL}%{?3:+%{3}}/config\
36583660
/lib/modules/%{KVERREL}%{?3:+%{3}}/modules.builtin*\
36593661
%ghost %attr(0600, root, root) /boot/symvers-%{KVERREL}%{?3:+%{3}}.gz\
36603662
%ghost %attr(0600, root, root) /boot/initramfs-%{KVERREL}%{?3:+%{3}}.img\
36613663
%ghost %attr(0644, root, root) /boot/config-%{KVERREL}%{?3:+%{3}}\
36623664
%{expand:%%files -f kernel-%{?3:%{3}-}modules-core.list %{?3:%{3}-}modules-core}\
3663-
%dir /lib/modules\
3664-
%dir /lib/modules/%{KVERREL}%{?3:+%{3}}\
36653665
%dir /lib/modules/%{KVERREL}%{?3:+%{3}}/kernel\
36663666
/lib/modules/%{KVERREL}%{?3:+%{3}}/build\
36673667
/lib/modules/%{KVERREL}%{?3:+%{3}}/source\

0 commit comments

Comments
 (0)