summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-03-09 13:26:49 -0500
committerDave Reisner <dreisner@archlinux.org>2012-03-11 14:28:15 -0400
commit11ac21c1cf74a428017c6335b7c74cf3cfedeb11 (patch)
treecdfe5391c2f0b785d9b6399c535f0b716a285eb5
parentea3f8c5761d7f1cdf693746bc3322d9482b349ce (diff)
arch-tmpfiles: allow passing specific config files
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>
-rwxr-xr-xarch-tmpfiles2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch-tmpfiles b/arch-tmpfiles
index 3b94885..4b12841 100755
--- a/arch-tmpfiles
+++ b/arch-tmpfiles
@@ -235,7 +235,7 @@ fi
# directories declared later in the tmpfiles_d array will override earlier
# directories, on a per file basis.
# Example: `/etc/tmpfiles.d/foo.conf' supersedes `/usr/lib/tmpfiles.d/foo.conf'.
-for path in "${tmpfiles_d[@]}"; do
+for path in "${@:-${tmpfiles_d[@]}}"; do
[[ -f $path ]] && fragments[${path##*/}]=${path%/*}
done