-
Notifications
You must be signed in to change notification settings - Fork 395
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(network-manager): support nm-initrd-generator under NetworkManager #2123
Conversation
This look very similar to the patch I use for the Debian version of dracut: I will update my patch and decide if I still need it. I like the use of find_binary IMO my patch has a better regex for inst_multiple |
inst_multiple -o /usr/{lib,libexec}/nm-initrd-generator | ||
inst_multiple -o /usr/{lib,libexec}/nm-daemon-helper | ||
inst_multiple -o /usr/{lib,libexec}{,/NetworkManager}/nm-initrd-generator | ||
inst_multiple -o /usr/{lib,libexec}{,/NetworkManager}/nm-daemon-helper |
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.
I fired off an email to ask about reconciling the paths with upstream NetworkManager since Debian adopted FHS 3.0 some time ago and allows |
@aafeijoo-suse asked to combine this PR with #2081 . Closing this PR in favor of #2081 . |
Since #2081 is stalled, reopening this PR. |
Hmm that's probably a historic/snug in bug as in we support standards and the effort of the people creating those standards and we do so by adhering to those standards not by support working around those standards ( but are open for a strong technical argument for deviating from the standards if such thing exist which is a bug in the standard then ) so workarounds for downstream that deviate from the standards is something we dont support and downstream has to carry the support for it, themselves and in the progress all the effort in trying to maintain that support that deviation in otherwords we should not have to call find to find a binary in which locations should already be standardized upon. That said like @aafeijoo-suse I'm getting a bit confused about all this work it's like you are constantly trying to refactor our code to fit your test case for debian? |
Closing with the conclusion that there is no interest to find a solution for current Debian and debian based distros upstream. Debian and debian based distros should continue to carry this patch instead. This of course means that dracut will not be able to test network-manager module for Debian container here upstream as it would all fail and have to instead invest time and effort to skip network-manager tests just for the Debian container. I will try to find those standards for the file system location for nm-initrd-generator that are mentioned as a decisive factor for this PR yet not referenced. If somebody could help reference those standards for them, please drop a link on this PR. |
Reopening based on recent policy changes and recent review feedbacks where it was suggested that the project should consider distro specific changes even if those changes are intentionally different than the corresponding upstream repo's for the purpose of networking related modules in dracut. This PR is now only limited to find nm-initrd-generator on debian (and debian based distro's). |
I wrote down a few of my thoughts on how to review distribution specific changes on the wiki. In the past there was very little consistency around the reviews of distribution specific changes. https://github.com/dracutdevs/dracut/wiki/Dracut-development#reviews |
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.
All four paths /usr/{lib,libexec}{,/NetworkManager}
are FHS compliant and this change will support the path in Debian/Ubuntu. So +1 for this change from my side.
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. |
This PR is still valid. |
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.
Upstream NetworkManager explicitly supports Debian. This PR proposes the same for the network-manager dracut module.
Upstream NetworkManager explicitly supports prefix for libexecdir here .
In network-manager/module-setup.sh nm-initrd-generator is already marked optional to accomodate different locations for nm-initrd-generator in different setups as the path is not stable between Linux installations and versions.
The file in Debian 12 is located in
/usr/lib/NetworkManager/nm-initrd-generator
.The file location has been in stable Debian for about 4 years now (since Debian 10).
This issue impacts over 50 Linux distributions and blocks testing NetwrokManager for Debian on the upstream CI.
From FHS 3.0
CC @Mrfai @bdrung