Support bin-sbin merge on Fedora#18373
Merged
behlendorf merged 1 commit intoopenzfs:masterfrom Mar 31, 2026
Merged
Conversation
Starting with Fedora 42, Fedora has been working on merging /bin and /sbin directories. See https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin To support this, make sure we do not put files into */sbin directories on these distributions by respecting the distribution set value of %{_sbindir}. In addition, explicitly set `mounthelperdir`, which affects the placement of `mount.zfs`, which does not respect %{_sbindir} by default. Making it point to %{_sbindir} will allow it to work correctly on Fedora, while keeping its previous directory of `/sbin` on all other distributions. Note that files that used to reside in */sbin directories on Fedora will stay accessible under these paths, as the distribution maintains symlinks. No changes are needed to external scripts invoking these binaries. Signed-off-by: Ralf Ertzinger <ralf@skytale.net>
behlendorf
approved these changes
Mar 31, 2026
Contributor
behlendorf
left a comment
There was a problem hiding this comment.
Thanks for the heads up on this change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Starting with Fedora 42, Fedora has been working on merging /bin and /sbin directories. See
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin
To support this, make sure we do not put files into */sbin directories on these distributions by respecting the distribution set value of %{_sbindir}.
In addition, explicitly set
mounthelperdir, which affects the placement ofmount.zfs, which does not respect %{_sbindir} by default. Making it point to %{_sbindir} will allow it to work correctly on Fedora, while keeping its previous directory of/sbinon all other distributions.Note that files that used to reside in */sbin directories on Fedora will stay accessible under these paths, as the distribution maintains symlinks. No changes are needed to external scripts invoking these binaries.