From: Jan Stancek <jstancek(a)redhat.com>
kernel.spec: drop custom mode also for System.map ghost entry
/lib/kernel/install.d/20-grub.install copies System.map to /boot
with same attributes it has in /lib/, which creates mismatch between
attributes in spec and attributes on file systems. So, right after
installation "rpm -V" reports 'M' (Mode differs).
Fixes: bda59a14d7a3 ("Drop custom mode for System.map file")
Signed-off-by: Jan Stancek <jstancek(a)redhat.com>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -3822,7 +3822,7 @@ fi\
%ghost /%{image_install_path}/dtb-%{KVERREL}%{?3:+%{3}} \
%endif\
/lib/modules/%{KVERREL}%{?3:+%{3}}/System.map\
-%ghost %attr(0600, root, root) /boot/System.map-%{KVERREL}%{?3:+%{3}}\
+%ghost /boot/System.map-%{KVERREL}%{?3:+%{3}}\
%dir /lib/modules\
%dir /lib/modules/%{KVERREL}%{?3:+%{3}}\
/lib/modules/%{KVERREL}%{?3:+%{3}}/symvers.%compext\
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3044