-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support snippet configuration file(s) stored in /usr/... #1252
Comments
Are you aware of an implementation for GKeyFile which already handles this? It seems a bit wasteful to reimplement this in each application. :) |
Based on a quick read at the glib/gkeyfile docs and checking with one of the glib devs - there is no API to automatically handle this. Doesn't seem like there are (m)any apps that use glib and do this either. |
I've been wondering about why this has not come up before and I think it's because the This means that the case for changing parts of the So, given that there is no support for merging drop-ins in What I'd find useful (even without drop-ins) would be a search order for the |
Having the I agree and can sympathise on the GKeyFile/maintenance side wrt the fragments and don't want to force it onto anyone. For illustration sake, here are some use-case(s):
In both cases, having that as fragment allows for easy migration - be that up or downgrades, and reversion. Even a semi-tech savvy user can do it locally themselves. |
Note: We had a similar discussion and a draft PR using libeconf in rauc/rauc-hawkbit-updater#84. |
As a summary, we think that a search order for the |
Is your feature request related to a problem? Please describe.
Currently rauc only supports a configuration file in /etc/rauc/. Which can be problematic if you consider:
Describe the solution you'd like
Would be great if rauc supports the following two:
The above two are closely related, although feel free to split/tackle separately if it makes sense.
With the above two in place then distribution/vendor can use
/usr/lib/rauc/00-section-{foo,bar}.conf
as part of their rauc package, with additional standalone overrides via/usr/lib/rauc/01-section-foo-change-baz.conf
.The linked blog post and the
CONFIGURATION DIRECTORIES AND PRECEDENCE
section ofman sysctl.d
(among others) provides good additional details on the Whys and Hows.Thanks in advance
The text was updated successfully, but these errors were encountered: