chiark / gitweb /
binfmt,tmpfiles,modules-load,sysctl: rework the various early-boot services that...
authorLennart Poettering <lennart@poettering.net>
Mon, 11 Feb 2013 22:48:36 +0000 (23:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Feb 2013 22:54:30 +0000 (23:54 +0100)
commitfabe5c0e5fce730aa66e10a9c4f9fdd443d7aeda
tree11a1e012f820f3e4f30e5d60fd75f81dddaa1310
parent853b8397acdebdd44777810e560403bae3756859
binfmt,tmpfiles,modules-load,sysctl: rework the various early-boot services that work on .d/ directories

This unifies much of the logic behind them:

- All four will now ofllow the rule that the earlier file and earlier
  assignment in the .d/ directories wins. Before, sysctl was the only
  outlier, where the later setting always won.

- All four now support getopt() and --help on the command line.

- All four can now handle specification of configuration file names on
  the command line to apply. The tools will automatically find them, and
  apply them. Previously only tmpfiles could do that. This is useful for
  %post scripts in RPMs and suchlike.

- This fixes various error path issues in conf_files_list()
15 files changed:
man/sysctl.d.xml
src/binfmt/binfmt.c
src/modules-load/modules-load.c
src/shared/conf-files.c
src/shared/conf-files.h
src/shared/hashmap.c
src/shared/hashmap.h
src/shared/path-util.c
src/shared/path-util.h
src/shared/strv.c
src/shared/strv.h
src/shared/util.c
src/shared/util.h
src/sysctl/sysctl.c
src/tmpfiles/tmpfiles.c