canonical / core-initrd

initrd implementation in ubuntu core
https://ubuntu.com/core/docs
GNU General Public License v3.0
10 stars 29 forks source link

bin/ubuntu-core-initramfs: warn about missing dynamic dependencies #271

Closed valentindavid closed 2 weeks ago

valentindavid commented 1 month ago

Now systemd loads most of libraries through dlopen. It also defines a .notes.dlopen section to ELF binaries to list those libraries. We use dlopen-notes to list those dependencies and warn about missing ones. And eventually fail for required ones.

valentindavid commented 1 month ago

The current missing libraries on oracular are:

 * libtss2-mu.so.0 (suggested)
 * libqrencode.so.3 (suggested)
 * libdw.so.1 (suggested)
 * libip4tc.so.2 (suggested)
 * libtss2-esys.so.0 (suggested)
 * libelf.so.1 (suggested)
 * libidn2.so.0 (suggested)
 * libfido2.so.1 (suggested)
 * libbpf.so.1 (suggested)
 * libgcrypt.so.20 (suggested)
 * libarchive.so.13 (suggested)
 * libtss2-rc.so.0 (suggested)
 * libqrencode.so.4 (suggested)
 * libp11-kit.so.0 (suggested)
 * libbpf.so.0 (suggested)
 * libpwquality.so.1 (suggested)
valentindavid commented 1 month ago

Also this is useless on 24.04 as these notes do not exist yet.

alfonsosanchezbeato commented 1 month ago

Found the reference now: https://systemd.io/ELF_DLOPEN_METADATA/