On 30/09/25 at 08:57, Henrik Ahlgren wrote:
Franco Martelli <martellif67@gmail.com> writes:So the question is: how can I add libraries (not modules) to my "initrd.img" file?Take a look at initramfs-tools(7) man page – I believe a hook script using the copy_exec command is what you're looking for.
Thanks, I did an initramfs hook that it adds the libraries mentioned in the previous email and changed the kernel configuration adding KPROBE=y and PROBE_EVENTS_BTF_ARGS=y and the Systemd's error message is gone.
Sadly now a warning instead is returned by Systemd:systemd[1]: bpf-restrict-fs: Failed to link program; assuming BPF LSM is not available.
I was thinking to give up. Does anybody know which Systemd's features I lose if BPF and LSM are disabled in the Linux kernel? Is it a big trouble for the entire operating system?
-- Franco Martelli