You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
install_items can be used to add both libraries and executable to the initramfs image. While setting up unlocking for a LUKS encrypted root using a FIDO2 token, I encountered the following scenario: systemd-cryptsetup needs libfido2.so for FIDO2 support, but as it dlopens it, the dependency isn't automatically included in the initramfs. My initial solution was to add libfido2.so via install_items, but that doesn't automatically add dependencies. The final workaround was to add an executable that is dynamically linked to libfido2.so, which through the dependency resolution also add libfido2.so itself and its dependencies. However, this is ugly.
The best solution would be for install_items to also add library dependencies when adding a .so file (like it does for executables). I would like to add that functionality. Which place in dracut code should I be looking at for modifying install_items?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
install_items
can be used to add both libraries and executable to the initramfs image. While setting up unlocking for a LUKS encrypted root using a FIDO2 token, I encountered the following scenario:systemd-cryptsetup
needslibfido2.so
for FIDO2 support, but as itdlopen
s it, the dependency isn't automatically included in the initramfs. My initial solution was to addlibfido2.so
viainstall_items
, but that doesn't automatically add dependencies. The final workaround was to add an executable that is dynamically linked tolibfido2.so
, which through the dependency resolution also addlibfido2.so
itself and its dependencies. However, this is ugly.The best solution would be for
install_items
to also add library dependencies when adding a.so
file (like it does for executables). I would like to add that functionality. Which place indracut
code should I be looking at for modifyinginstall_items
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions