Package: debianutils
Version: 5.7-0.5~deb12u1
Severity: wishlist
Hi,
it has become a common pattern to let packages install config files or
scripts in foo.d directories into /usr and let the local admins override
these scripts if necessary by placing a file with the same name in the
appropriate foo.d directory in /etc. This allows for packages to easily
ship defaults without conflicting with admin-edited conf-files in /etc.
This idea is also documented here:
https://uapi-group.org/specifications/specs/configuration_files_specification/
I recently re-implemented the logic in shell for this MR:
https://salsa.debian.org/kernel-team/linux/-/merge_requests/1159
If run-parts had support for this mechanism, then this solution could be
dropped in favour of just using run-parts. One way to communicate this
to run-parts could be to just let it support multiple DIRECTORY
arguments and those files in later directories would override those in
earlier ones like this:
run-parts --report --exit-on-error /etc/kernel/postinst.d
/usr/share/kernel/postinst.d
What do you think?
Thanks!
cheers, josch