-
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
prevent running /etc/init.d/zfs-import if using systemd #3838
Conversation
The problem with the export part is that it won't work if you're booting from a ZFS filesystem. Can't export the pool because the filesystem is in use… Which is why we have special checks for that in the SYSV scripts… PS. You forgot the reading of Also, you need a |
I'm all for having ONE commit for all of it, not one single commit for each file. |
I don't want the 2nd changes here. I prepared it for a later pull request. I have to learn a lot about github. |
You write the repo owner ( Something like this (I have an idea what you're thinking of :):
Without the back ticks, this would become: zfsonlinux/pkg-zfs#172 |
@FransUrbo I edited the files online on github, because I don't have/want the full repo local. |
I see what you mean by the last four commits. Those should be in a separate commit, I agree. What you do is the following:
So for each change (pull request) you want to do, you do these three steps from the beginning. Unfortunately, since you used |
@FransUrbo I think to do it again is the best idea, too. Next turn ... |
For systems with systemd in sysv init compatibility mode you have to prevent that services in /etc/init.d will be executed if there is a equivalent in systemd.
There is zfs-import without a corresponding systemd service. You have to add 'Conflicts=zfs-import.service' to zfs-import-cache.service and zfs-import-scan.service.