Bug 1196805

Summary: Add extra tmpfiles.d entries for /var
Product: [Fedora] Fedora Reporter: Hristo Venev <hristo>
Component: systemdAssignee: systemd-maint
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: johannbg, jsynacek, lnykryn, msekleta, s, systemd-maint, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-04 10:00:00 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 Hristo Venev 2015-02-26 19:26:05 UTC
d /var/empty 755 root root -
d /var/db 755 root root -
d /var/spool/mail 775 root root -
L /var/mail - root root - spool/mail

These are a part of filesystem. However they must be recreated in case of rm -rf /var. Volatile systems and stuff.

Comment 1 Zbigniew Jędrzejewski-Szmek 2015-02-26 21:29:34 UTC
(In reply to Hristo Venev from comment #0)
> d /var/spool/mail 775 root root -
> L /var/mail - root root - spool/mail
I'd rather not go into the business of providing mail directories. Some poeple use Maildirs in /home, many systems don't do mail at all. If anything, filesystem package should carry this configuration, since they have those directories in the rpm.

> d /var/db 755 root root -
This is useless by itself, any user will have to create a subdirectory underneath this anyway.

> d /var/empty 755 root root -
Same here.

> These are a part of filesystem. However they must be recreated in case of rm
> -rf /var. Volatile systems and stuff.
In general snippets for directories should be carried by the same rpms which own those directories. This helps avoid discrepancies.

Comment 2 Jan Synacek 2015-03-04 10:00:00 UTC
As Zbigniew already pointed out, packages should provide relevant tmpfiles.d snippets.