Bug 2160954

Summary: rpm -Va reports error on /run/motd
Product: [Fedora] Fedora Reporter: Christoph Karl <pampelmuse>
Component: setupAssignee: Martin Osvald 🛹 <mosvald>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: karsten, mosvald, ovasik, pavel
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: setup-2.14.4-1.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-26 13:42:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christoph Karl 2023-01-14 18:11:10 UTC
Description of problem:
"rpm -Va" reports error on mode for /run/motd

Version-Release number of selected component (if applicable):
setup-2.14.3-1.fc38.noarch

How reproducible:
Always

Steps to Reproduce:
1. Make a fresh installation
2. run "rpm -Va"

Actual results:
.M.......  g /run/motd

Expected results:
No output

Additional info:
Maybe the spec-file "setup.spec" line 102 should contain:
Instead of:
%ghost /run/motd
maybe better:
%ghost %verify(not mode) /run/motd

Comment 1 Ben Cotton 2023-02-07 15:05:27 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 2 Martin Osvald 🛹 2023-04-04 06:26:56 UTC
Thanks for reporting this problem!

Will be fixed in the upcoming version, commit:

https://pagure.io/setup/c/9f08091cdba2d21df7e3e33f54c7ef22ec710ef4?branch=master

Comment 3 Martin Osvald 🛹 2023-07-26 08:54:16 UTC
This fixes it properly:

https://pagure.io/setup/c/61561749be416f60cce59baef75004790ba35c0d?branch=master

without the %attr(0644,root,root), rpmdb had 0 perms set for it therefore it got reported by rpm -Va. We actually want to check perms if we set them to specific value through tmpfiles.d configuration.

Comment 4 Fedora Update System 2023-07-26 11:08:40 UTC
FEDORA-2023-3f4e114f20 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-3f4e114f20

Comment 5 Fedora Update System 2023-07-26 13:42:04 UTC
FEDORA-2023-3f4e114f20 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Christoph Karl 2023-07-30 11:11:34 UTC
Works for me.