mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
The files were read one directory at a time, Finit's own first and /etc/tmpfiles.d last, and every entry for a path was run. With two entries for a path the last one read won, so an entry in /etc won over one in /usr/lib whatever the files were called. tmpfiles.d(5) reads the files in the order of their names, whatever directory they are in, and goes by the first entry that makes a path. A package relies on that when it names its file to sort before or after another. Do the same. As before, a file in a later directory is read in place of one of the same name in an earlier one. A later entry is skipped when it makes a path an earlier one makes, or when both take a glob and remove, write to, or keep the path. Several w+ entries may add to one file. The skip is only told about with --dry-run or --debug, since Finit's files and those of other packages overlap on most systems. Finit's own files had two entries for some paths, and relied on the last one. Drop the ones that lost: /run/lock, /run/lock/subsys, and /var/lock in legacy.conf, and /var/run and a second /var/spool in var.conf. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
# Standard FHS 2.3 structure in /var and /var/run, err /run
|
|
|
|
d /var/cache 0755 - - -
|
|
d /var/db 0755 - - -
|
|
d /var/games 0755 - - -
|
|
d /var/lib 0755 - - -
|
|
d /var/lib/alarm 0755 - - -
|
|
d /var/lib/misc 0755 - - -
|
|
d /var/lib/urandom 0755 - - -
|
|
d /var/spool 0755 - - -
|
|
d /var/tmp 1777 - - -
|
|
|
|
# Used by pam_console(8)
|
|
d /run/console 1777 - - -
|
|
f /run/console/nobody 0644 - - -
|
|
f /run/console/console.lock 0644 - - - nobody
|
|
|
|
# /run/lock/subsys is used for serializing SysV service execution
|
|
d /run/lock 0777 - - -
|
|
d /run/lock/subsys 0755 - - -
|
|
|
|
# Compat symlink to new /run ramdisk, for /var/run see finit.conf
|
|
L /var/lock - - - - ../run/lock
|
|
|
|
# Needed by Debian/Ubuntu ifupdown
|
|
d /var/run/network 0755 - - -
|
|
|
|
# Debian has /run/sudo, ensure correct perms and SELinux label
|
|
d /run/sudo 0711 root root
|
|
d /run/sudo/ts 0700 root root
|
|
Z /run/sudo - - - -
|
|
|
|
d /var/empty 0755 - - -
|
|
d /var/log 0755 - - -
|
|
d /var/mail 0755 - - -
|
|
d /var/opt 0755 - - -
|
|
d /var/spool/cron 0755 - - -
|
|
|
|
# UTMP actually needs multiple db files
|
|
f /var/run/utmp 0664 root utmp -
|
|
f /var/log/wtmp 0664 root utmp -
|
|
f /var/log/btmp 0660 root utmp -
|
|
f /var/log/lastlog 0664 root utmp -
|