-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
use /etc/zfs.conf for defaults for better use with systemd #3827
Comments
We already have I just don't know a way to "source" environment settings from an external file in a |
Like written in this blog I think it's better to have native config files:
I know you like to make a lot of scripts but some basics should be inside zfs. |
We don't want to create a second config file with the same information when we already have one that's just fine. And that file IS part of the basic layout of ZoL. That and the |
But zfs import won't read it? |
Yes it will. ALL SYSV init scripts, the initramfs scripts and, in my "Phase 3" PR (which I hope will be accepted), even the Uniformity have been the primary reason why I've been pushing this so hard! Before behlendorf accepted the first SYSV PR, we had FIVE SYSV init scripts! None identical, but did basically the same thing. It was a huge mess to maintain! Having ALL systems using ZoL boot and start the exact same way isn't unreasonable to demand… Linux init scripts, be it SYSV or I don't consider it unreasonable that the |
I think we need to draw the line somewhere. I'm not even sure how many distributions that have/will have this problem. Ubuntu (and from what I can tell RedHat/Fedora) isn't distributing the SYSV scripts because it's deprecated, they're only using Gentoo isn't distributing the Source installs (or packages built from the ZoL source tree) probes the system it's built on and only builds and installs the relevant part. Either So from this list, I'm the only one distributing both at the same time in the same package… And if this holds true in the real world, then I would actually HATE to have ZoL having that link in it's repository... |
But I don't talk about boot scripts. The way it works now:
The way it should work:
|
Nah, that's not going to happen… it's way out of the scope of how a command line tool is used on Linux. Feel free to push this (or come up with a PR that does it), but if not, don't count on anyone taking the time to do it... |
You don't have to go far. Begin with letter a and you will find /etc/adduser.conf. There are a lot of variables which will changes the command line behavior. |
Not a command, a script… I can't vouch for every single command, but I think you'll be hard pressed to find a command that have a config file like that. They probably exist, but they're in a minority. Adding support for that in ZoL is going to be a monumentous job! |
I don't say to do it now and for everything, but there should be a plan what to do in future or it won't never be better. |
If we're doing this to simply for We do not change our command to suite |
I want it more comfortable and flexible. So I like to put some things I often use into a config file. |
It occurred to me that if you want That way, we don't have to change the ZoL utilities/commands. Granted, that only works for However, the only option that's really of any interest to the commands are |
Trying to figure out a way for How that would help, I don't really know. The only variable we could have the use for is |
Turns out there's actually quite a few variables we could use from the defaults file. Have a look at #3884. Untested though! |
Closing, systemd customization has been left to the individual distributions. |
zpool import and other commands should read defaults from config file to make systemd usage easier.
http://0pointer.de/blog/projects/on-etc-sysinit.html
The text was updated successfully, but these errors were encountered: