-
Notifications
You must be signed in to change notification settings - Fork 400
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
fix(dracut): move hooks directory from /usr/lib to /var/lib #2591
base: master
Are you sure you want to change the base?
Conversation
46be9e8
to
e02e5b6
Compare
@lnussel I'm not sure if A specific directory outside the FHS (such as |
That's talking about |
Right, I was wrong. Thanks. |
@aafeijoo-suse did you look into how this change would affect non systemd based distributions and which locations those users/distro's might want to use instead since the scope of this change is not limited to systemd based distributions. |
No, I didn't. That's why upstream PRs are public, so people from other environments can comment whether this change suits their systems. What I know is that initrds generated by dracut don't work with the upcoming systemd-v256, but we are not in a hurry, the new place to save the hooks is something to discuss here. |
Regardless of the new writable location, can dracut maintain a link from /lib/dracut/hooks to the new directory location for improved compatibility ? |
This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions. |
Bumping this topic again, systemd will tag v256-rc1 soon and dracut is broken without this fix. @thesamesam @floppym @AndrewAmmerlaan @ahesford ping, I don't know if |
I'll tag @zdykstra for further comment as the maintainer of Void's dracut package and fellow ZFSBootMenu author. On the surface, this is probably irrelevant to ZFSBootMenu, because we should be using dracut's hook installation functions to put our stuff where it needs to go. We don't work with systemd in the initramfs and just exec into our own event loop anyway. In the meantime, I'll grumble quietly, but loudly enough to say that this is yet another example of a questionable decision by systemd that produces no discernible benefit (why is |
I do not see how we can maintain Compatibility without having a link from /lib/dracut/hooks. Random (perhaps not the best) example that I think would break by this PR (from openshift) - https://github.com/openshift/installer/blob/master/pkg/asset/agent/image/agentartifacts.go#L164 |
There's nothing I can see on the Void side that will break because of this change. I seriously question the need for making |
Since systemd/systemd@ffc1ec73, /usr is mounted as read-only in the initramfs by default. Fixes dracutdevs#2588
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for adding a link from /lib/dracut/hooks.
Since systemd/systemd@ffc1ec73,
/usr
is mounted as read-only in the initramfs by default.Checklist
Fixes #2588