Comment 8 for bug 1958594

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

We have been bitten by this before. And Last time I did proposed to do this:

- create a stub binary tha tis linked with pthread and libgcc_s
- copy_exec that into the initramfs

https://code.launchpad.net/~xnox/ubuntu/+source/initramfs-tools/+git/initramfs-tools/+merge/385243

This ensures that at least one binary wants pthreads and libgcc_s and those things get copied into the initramfs correctly and always for the host architecture.

I had to do this with a binary, because precisely like raof says we never know which architecture we need, and which hw optimized version of those libraries is needed.

I feel like I should upload the above (rebased on jammy) into jammy to get this done once and for all. Kind of sad that I didn't do that 2 years ago. Which would have avoided this issue today.