-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add finit.config=/etc/custom.conf cmdline (kernel) for different finit.conf file #235
Comments
Nope, only at configure time using |
Similar to #224, neat request if |
This would be useful to me, if implemented, perhaps we could hardcode allowed filenames at compile time? That way user cannot arbitrarily specify a filename and then when something is passed finit just checks against kv to see if it was allowed at compile time. Might help to mitigate any possible security issues? Just a thought today about this. |
Good idea, I was a bit concerned about the security aspects as well! Thanks :) |
What about this?
This works since finit.conf is read first (right?) |
Yes, that would work. (I'm assuming you meant |
Yep! :) |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as outdated.
This comment was marked as outdated.
I wanted to clarify this feature request a bit and narrow it down.
I think these two changes are very powerful and allow the user to specify completely different sets of scenarios. For example, you might want a factory test mode which you can simply specify that with kernel cmdline A similar functionality can be used with runlevels, but your limited to a few scenarios with no way to specifically name each one. Also, there are some hardcoded functionality which cannot be changed with runlevels (e.g. in my above example the rcsd_dir), so being able to specify a different finit.conf (which in turn specifies it's own rcsd_dir) would be extremely powerful. The above changes (I think) should be backwards compatible, so existing users won't see a difference. |
100% agree from me. Thank you for taking the time to pin this down <3 |
There, finally completed! :-) We now have the following kernel command line option:
... and top-level configuration directive (from
|
I would like (for testing) to specify a different /etc/finit.conf file. Is it possible to pass a kernel param to specify what config file init uses?
The text was updated successfully, but these errors were encountered: