Bug 798032

Summary: systemd-update overwrites config files
Product: [openSUSE] openSUSE 12.2 Reporter: Andreas Osterburg <andreas.osterburg>
Component: BasesystemAssignee: Frederic Crozat <fcrozat>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 12.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andreas Osterburg 2013-01-11 09:32:57 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0

When zypper updates systemd-packages config files under
/usr/lib/tmpfiles.d are overwritten. Especially tmp.conf is important,
because tmp-direcories will be cleaned up after an restart.
There are people, like me, that do not want that.
Either there is a possibility to use a config-file with an higher priority elsewhere or the files should be marked as a config file in RPM.

Reproducible: Always

Steps to Reproduce:
1. update systemd
Comment 1 Michal Vyskocil 2013-01-25 09:58:01 UTC
(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0
> Firefox/17.0
> 
> When zypper updates systemd-packages config files under
> /usr/lib/tmpfiles.d are overwritten. Especially tmp.conf is important,
> because tmp-direcories will be cleaned up after an restart.
> There are people, like me, that do not want that.
> Either there is a possibility to use a config-file with an higher priority
> elsewhere or the files should be marked as a config file in RPM.

See man tmpfiles.d - they have the same order of a preference, as the rest of the systemd

/run/tmpfiles.d/*.conf
/etc/tmpfiles.d/*.conf
/usr/lib/tmpfiles.d/*.conf

so all you need is to

# touch /etc/tmpfiles.d/tmp.conf

to overrride the file with a same name from /usr/lib
Comment 2 Andreas Osterburg 2013-01-25 10:35:40 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0
> > Firefox/17.0
> > 
> > When zypper updates systemd-packages config files under
> > /usr/lib/tmpfiles.d are overwritten. Especially tmp.conf is important,
> > because tmp-direcories will be cleaned up after an restart.
> > There are people, like me, that do not want that.
> > Either there is a possibility to use a config-file with an higher priority
> > elsewhere or the files should be marked as a config file in RPM.
> 
> See man tmpfiles.d - they have the same order of a preference, as the rest of
> the systemd
> 
> /run/tmpfiles.d/*.conf
> /etc/tmpfiles.d/*.conf
> /usr/lib/tmpfiles.d/*.conf
> 
> so all you need is to
> 
> # touch /etc/tmpfiles.d/tmp.conf
> 
> to overrride the file with a same name from /usr/lib

Ok, thank you. Perhaps someone should update the release notes, since it points
to /usr/lib/tmpfiles.d/tmp.conf.