Dear list,
I've stumbled upon a serious issue that has not been discussed before. Somewhere
around May 2015 kernel files was moved to /usr/lib/modules/<kernelver>, which are
then copied to /boot in post scriptlets [1]. The issue is that such files are marked with
%ghost because they don't exist initially and are being copied when installed. Now
because of that rpm (rpm -qV) can't verify the files attributes correctly and heck
even doesn't point out if they don't exist at all as it is the case if dnf fails
in the middle of transaction. Because of that I've opened a bug report [2], but it was
closed because that was supposedly intended, but looking at mailing list archive, I
don't see this particular issue being raised and frankly in my opinion marking files
that are responsible to boot the system as %ghost should not happen. %ghost should be used
only when there is not any other option left in case when files truly doesn't exist
and its integrity could not be verified in advance.
[1]
https://lists.fedoraproject.org/pipermail/kernel/2015-May/005819.html
[2]
https://bugzilla.redhat.com/show_bug.cgi?id=1467450