Skip to content

Fix rpm -V verification failures on kernel-core package

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1977056

As reported on bugzilla above, rpm -V on kernel-core package fails, eg.:

.M.......  g /boot/System.map-5.13.0-0.rc7.51.el9.x86_64
.M.......  g /boot/initramfs-5.13.0-0.rc7.51.el9.x86_64.img
.......T.    /lib/modules/5.13.0-0.rc7.51.el9.x86_64/modules.builtin.alias.bin

This merge request with two commits are aimed to fix those. The ghost files issue were already fixed in rhel7/rhel8 but kernel-ark lacked the commit, which I cherry-picked here. The other commit fixes the problem with modules.builtin.alias.bin which is a depmod created file and we need to remove in the build process.

Merge request reports