RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1241623 - /usr/lib/tmpfiles.d/mariadb.conf is overwritten when mariadb package is updated
Summary: /usr/lib/tmpfiles.d/mariadb.conf is overwritten when mariadb package is updated
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: mariadb
Version: 7.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Jakub Dorňák
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 1203710 1289025 1295829 1313485
TreeView+ depends on / blocked
 
Reported: 2015-07-09 15:51 UTC by Yoshifumi Kinoshita
Modified: 2019-12-16 04:48 UTC (History)
8 users (show)

Fixed In Version: mariadb-5.5.47-2.el7
Doc Type: Enhancement
Doc Text:
Feature: Include warning in files put in /usr/lib/tmpfiles.d/ Reason: To inform users to create a file (with same name) in /etc/tmpfiles.d/ when they want to customize anything in that file because that file could be overwritten with the next package update Result:
Clone Of:
Environment:
Last Closed: 2016-11-03 20:46:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2595 0 normal SHIPPED_LIVE Important: mariadb security and bug fix update 2016-11-03 12:11:21 UTC

Comment 2 Honza Horak 2015-07-09 16:15:08 UTC
This is what tmpfiles.d(5) man page says about tmpfiles.d files:

Files in /etc/tmpfiles.d override files with the same name in /usr/lib/tmpfiles.d and /run/tmpfiles.d. Files in /run/tmpfiles.d override files with the same name in /usr/lib/tmpfiles.d. Packages should install their configuration files in /usr/lib/tmpfiles.d. Files in /etc/tmpfiles.d are reserved for the local administrator, who may use this logic to override the configuration files installed by vendor packages. All configuration files are sorted by their filename in lexicographic order, regardless of which of the directories they reside in. If multiple files specify the same path, the entry in the file with the lexicographically earliest name will be applied, all all other conflicting entries will be logged as errors. When two lines are prefix and suffix of each other, then the prefix is always processed first, the suffix later. Otherwise, the files/directories are processed in the order they are listed.

Comment 3 Honza Horak 2015-07-09 16:19:18 UTC
(In reply to Honza Horak from comment #2)
> This is what tmpfiles.d(5) man page says about tmpfiles.d files:

Which means correct way to change /usr/lib/tmpfiles.d/mariadb.conf is actually creating /etc/tmpfiles.d/mariadb.conf.

Comment 5 Jakub Dorňák 2015-07-14 11:27:04 UTC
If there are no objections, I'd close this as NOTABUG.

Comment 9 Ryan Sawhill 2015-10-20 22:33:33 UTC
For the record, this is a public bug with multiple private comments. The public comments don't reflect it, but the private discussion has turned to adding a warning to the /usr/lib/tmpfiles.d/mariadb.conf file (provided by mariadb-server rpm).

This has purportedly already been added to the mariadb-server rpm in Fedora, though it must be rawhide or something because I don't see it on my Fedora 22.

I've tagged this as GSS-Proposed for RHEL 7.3.

Comment 10 Honza Horak 2015-10-22 05:46:31 UTC
The comment is even in F22 branch but the package was not rebuilt just for this change:
http://pkgs.fedoraproject.org/cgit/mariadb.git/tree/mysql.tmpfiles.d.in

Comment 15 errata-xmlrpc 2016-11-03 20:46:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2595.html


Note You need to log in before you can comment on or make changes to this bug.