![]() | 1 | initial version |
For some reason, these files are marked as %ghost
in the rpm .spec
file, which means that rpm -V
does not check these files. What you can do is:
rpm -ql --dump kernel-core | grep boot
Notice the long string of hexadecimal numbers in the fourth field. This is the sha256sum for each file. You can then compare that with the output of
sha256sum /boot/vmlinuz* /boot/config* /boot/System.map*
The initramfs is almost always recreated after installation, and would therefore not match.
Why the files are %ghost
I have no idea.
![]() | 2 | No.2 Revision |
For some reason, these files are marked as %ghost
in the rpm .spec
file, which means that rpm -V
does not check these files. What you can do is:
rpm -ql --dump kernel-core | grep boot
Notice the long string of hexadecimal numbers in the fourth field. This is the sha256sum for each file. You can then compare that with the output of
sha256sum /boot/vmlinuz* /boot/config* /boot/System.map*
The initramfs is almost always recreated after installation, and would therefore not match.
Why the files are %ghost
I have no idea.
Edit:
Actually, the real boot files are also found in
/lib/modules/*/System.map
/lib/modules/*/config
/lib/modules/*/vmlinuz
/lib/modules/*/.vmlinuz.hmac