Age | Commit message (Collapse) | Author | Files |
|
The whole point of using numeric IDs is to avoid resolution in the
passwd/group databases. If we encounter an ID which is simply numeric,
leave it alone.
Looks like I broke this in a4558c4c trying to be a bit too clever.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Modify our path collection loop to accept the remaining argv as paths to
config files. This overrides the default lookup for config files in
/etc, /lib, and /run so that single config files can be parsed at a time
(e.g. during package installation).
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
This doesn't actually relabel security contexts, since arch's coreutils
isn't built with selinux support, but it handles maintenance of mode and
ownership if you're into that sort of thing.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
getent will process numeric UIDs/GIDs for us.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
arch-tmpfiles should not truncate directories when invoked with
--create. This matches behavior from systemd's tmpfiles binary.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
install /dev/null as the new file instead of creating an empty file via
a no-op process substitution.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
[tomegun: the commit also adds a similar fix to rc.shutdown]
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Categorize actions as 'create' or 'remove', for finer control.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Introduces the checkparams functions, which thoroughly checks arguments
for presence, length, and some amount of data validation.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
This is the same concept as systemd's tmpfiles handling, slightly
simplified to avoid timed re-triggering of file cleaning. Most of our
current file cleaning that takes place in rc.single and rc.sysinit is
replaced by this, with the exception that we hold onto the /var/lock and
/var/run for finer control, since we still check for the possibility of
these directories being symlinks and adjust accordingly.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|