summaryrefslogtreecommitdiff
path: root/sh/tmpfiles.sh.in
Commit message (Collapse)AuthorAge
* tmpfiles: do not signal an error if device nodes already existDirk Sondermann2013-07-27
| | | | | X-Gentoo-Bug: 478336 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=478336
* tmpfiles: add --prefix and --exclude-prefix optionsWilliam Hubbs2013-07-25
|
* tmpfiles: make b and c commands set ownership and permissionsWilliam Hubbs2013-07-23
| | | | | The b and c commands in tmpfiles.sh were not setting ownership and permissions for the device nodes.
* typo fixHank Leininger2013-07-16
| | | | | X-Gentoo-Bug: 477006 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=477006
* tmpfiles: add support for the new X line typeWilliam Hubbs2013-03-11
| | | | | | | | | | | | tmpfiles now has a new line type, X, which is similar to the x line type used by the cleanup function. This is not supported yet by OpenRc, because we do not have the cleanup function in tmpfiles.sh, so I have added a dummy procedure for it so we don't get complaints about this line type. Reported-by: mgorny@gentoo.org X-Gentoo-Bug: 460880 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=460880
* tmpfiles: fix bashismWilliam Hubbs2012-11-06
| | | | reported-by: <pesa@gentoo.org>
* tmpfilesd: Doing both create+remove at the same time is valid.Robin H. Johnson2012-11-05
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* tmpfilesd: parse arguments with spacesAndrew Gregory2012-10-21
| | | | | | | | systemd allows the final arg in tmpfiles to contain spaces. Using the read() call to set the variables includes all trailing components in $arg so it doesn't get cut off. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* tmpfiles: return success from _f/_F on empty $argAndrew Gregory2012-10-21
| | | | | | | '[ -n "$arg" ] && _w' causes _f/_F to return the failure from the test when $arg is empty. Inverting the test causes the test and _f/_F to return success. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
* tmpfiles: do not process systemd.confWilliam Hubbs2012-10-21
| | | | | | | This file contains definitions specific to systemd, so we should not process it. Reported-by: <andrew.gregory.8@gmail.com>
* tmpfiles.d init.d scriptsRobin H. Johnson2012-09-26
| | | | | | | | | | | | Now that the tmpfiles.d code is more tested, actually call it from init.d. It assumes that /run is already available when it runs. Please note it runs TWICE. - During sysinit, ideally just after /dev/shm is created, but before udev has started. After udev is also acceptable, but not ideal. - During boot, ideally just after localmount has completed. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* sh/tmpfiles.sh: Improve dry-run mode.Robin H. Johnson2012-09-26
| | | | | | Dry-run with more detail is more useful this way. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* sh/tmpfiles: fix quoting for optional argumentsRobin H. Johnson2012-08-16
| | | | | | | Some optional arguments were missing quotes in the tests, so produced spurious warnings. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* sh/tmpfiles: Upstream clarifications & quoting fixes.Robin H. Johnson2012-03-12
| | | | | | | | | | | | Upstream has clarified via IRC: - hardcoding /usr/lib/ is an explicit choice. It should NOT consider $libdir at all. - The z/Z relabel types should call restorecon, not chcon. - Whitespace is not allowed in tmpfiles.d/*.conf path entries, but is allowed in globs results. Fixed quoting of path arguments for this. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* sh/tmpfiles: tmpfiles.d support.Robin H. Johnson2012-03-12
This is the baseline support for tmpfiles.d. Still missing: - SELinux relabel, pending upstream clarification - LIBDIR vs multilib systems, pending upstream clarification - Whitespace in paths? - Clean support not implemented - "x" exclude type not implemented X-Gentoo-Bug: 396003 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=396003 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>