-
Notifications
You must be signed in to change notification settings - Fork 55
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
Not all binaries needed in initrd binary #987
Comments
My concern is that this issue about exiting if some binaries that stratisd usually requires, but which aren't available in the initramfs, is just the tip of the iceberg of the problem. We have a mechanism, conditional compilation, which is supposed to prevent D-Bus actions from being executed at boot. But how do we know that xfs-dependent actions won't be executed at boot, causing stratisd to fail one way or the other? AFAIK, the answer is that we do not. If we already had a mechanism to deal with that problem; then handling problems around |
Since #986 went in, we just will fail to come up in initrd because xfs binaries are absent, so that's not a good state of affairs. I was thinking we'd just config out XFS binaries being searched-for in BINARIES if building for initrd. Then calling them would return an error. We could also go further and cfg-out the callsites as well. Thoughts? We also could punt and require xfs binaries in initrd, even though we never(?) will need them! Not saying we should, but this puts in perspective that this is really an optimization to keep our initrd footprint down. Another tangential thought: right now we have a default feature of "dbus_enabled". Since that isn't the entirety of the changes we're now looking at for stratis-init, we may need to rename it, or add a second default feature. |
Should we just edit the dracut plugin to require all of the binaries? I'm not sure if this will be OK due to space constraints, but it would make this issue go away. |
Sure, let's just do that for now, and we can refine later if needed. |
PR posted upstream, see: dracutdevs/dracut#452 |
Upstream merged |
Thanks! |
With the merge of #986, stratisd will fail to run if all binaries aren't found. However, it only uses a subset of binaries from initrd, so it should only check for those if compiled for that use.
The text was updated successfully, but these errors were encountered: