-
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
dracut: Support /usr/bin as 'systemctl' path #11487
Conversation
On openSUSE the initrd has systemctl in /usr/bin, check this path as well Signed-off-by: Lorenz Hüdepohl <dev@stellardeath.org>
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.
The systemd man page makes it pretty clear we shouldn't need the full path here, so this makes sense to me. I see @rlaager made the same observation in the original PR, #8510 (comment), but I'm not sure why it wasn't incorporated in that change. @aerusso you might also want to double check that this is OK for Debian.
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.
On Debian, systemctl
is installed to /bin
. On a non-usrmerge system, that's it. On a usrmerge system, then /bin
and /usr/bin/
are the same thing. I don't see any problem from this change.
On openSUSE the initrd has systemctl in /usr/bin, check this path as well. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Laager <rlaager@wiktel.com> Signed-off-by: Lorenz Hüdepohl <dev@stellardeath.org> Closes openzfs#11487
On openSUSE the initrd has systemctl in /usr/bin, check this path as well. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Laager <rlaager@wiktel.com> Signed-off-by: Lorenz Hüdepohl <dev@stellardeath.org> Closes #11487
On openSUSE the initrd has systemctl in /usr/bin, check this path as well. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Laager <rlaager@wiktel.com> Signed-off-by: Lorenz Hüdepohl <dev@stellardeath.org> Closes openzfs#11487
On openSUSE the initrd has systemctl in /usr/bin, check this path as well. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Laager <rlaager@wiktel.com> Signed-off-by: Lorenz Hüdepohl <dev@stellardeath.org> Closes openzfs#11487
On openSUSE the initrd has the
systemctl
binary in/usr/bin
, check this path as wellHow Has This Been Tested?
I build zfs packages for openSUSE, available at https://build.opensuse.org/project/show/home:lorenz:filesystems
This commit is included as a patch there, and the resulting packages are in active use by myself and a few others. With the patch, the affected dracut initrd zfs services are then active also on openSUSE.
Types of changes
Checklist:
Signed-off-by
.