-
Notifications
You must be signed in to change notification settings - Fork 68
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 searches nfsidmap plugins for dependencies bogusly #1087
Comments
What would be a condition in the system for dracut to know which .so's dependencies it should care about and which .so dependencies it should not ? Would it be appropriate just ignore the ldd failure in this case and continue ? |
How do these Or maybe ldd should have a mode to ignore undefined so you can scan libs that expect symbols from main programs just for deps. I wonder what glibc is doing that makes it report missing syms for dynamic linked programs but not for shared libs...? |
Explicitly included here: https://github.com/dracut-ng/dracut-ng/blob/main/modules.d/95nfs/module-setup.sh#L97 Assumption is that these .so's are actually needed for nfs to work in the initrd (at least for glibc but perhaps regardless). The original commit is from 2010 (yes almost 15 years ago) - 0679a6d I need help from the Void community to explore a workaround where dracut does not call ldd on these without regressing other distro's - there is also a parallel discussion at void-linux/void-packages#53785 |
on glibc, ldd does notice the symbols with
|
Also move inst_libdir_file as the last step to handle the error case better. Fixes dracut-ng#1087
Also move inst_libdir_file as the last step to handle the error case better. Fixes dracut-ng#1087
Also move inst_libdir_file as the last step to handle the error case better. Fixes dracut-ng#1087
Also move inst_libdir_file as the last step to handle the error case better. Fixes dracut-ng#1087
Not-setting DRACUT_RESOLVE_LAZY results in some angry looking warnings:
but does cause a clean return code. |
Describe the bug
libnfsidmap (from nfs-utils) includes several plugins that are dlopened with the expectation of some symbols being loaded already. glibc's
ldd
hides this, but musl's does not, producing an error like this:This causes dracut to fail to build when including libnfsidmap.
These plugins have no dependencies that dracut should care about, so they should not be searched when added.
dracut log
Distribution used
Void
Dracut version
105
Init system
runit
To Reproduce
On a musl system, build a dracut image with nfs-utils installed.
Expected behavior
An image is built.
Additional context
see also:
The text was updated successfully, but these errors were encountered: