redhat: Let kernel-modules-core own the files depmod generates.
JIRA: https://issues.redhat.com/browse/RHEL-15435 Upstream Status: RHEL only
Backport of ARK commit:
commit fbbe59160ae8246ed6785c5b8055c20b828f8f86 Author: Thorsten Leemhuis fedora@leemhuis.info Date: Mon Jul 17 15:15:27 2023 +0200
Let kernel-modules-core own the files depmod generates.
Ghosting the files generated by depmod prevents warnings such as the
follwing when doing 'rpm -Vf modules.dep':
> file /usr/lib/modules/<ver>/modules.dep is not owned by any package
It also ensures that those files are removed from
/usr/lib/modules/<ver>/ right when the package is uninstalled, which
beforehand was not the case, as they were only removed during
%posttrans.
Fixes: 4af49783d664b6 ("redhat: Add sub-RPM with a EFI unified kernel image for virtual machines")
CC: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Thorsten Leemhuis <fedora@leemhuis.info>
Signed-off-by: Jan Stancek jstancek@redhat.com