mkinitfs fails to handle non-standard library paths (systemd)
when using systemd udev in the initramfs, we get the following error:
02:33:12.709120 hookfiles: unable to process hook file "/usr/share/mkinitfs/files/00-initramfs-base.files": unable to add "/usr/bin/udevadm": getDeps: unable to locate dependency for "/usr/bin/udevadm": libsystemd-shared-255.so
02:33:12.709291 failed to generate: initramfs
running ldd /usr/bin/udevadm
shows:
/ # ldd /usr/bin/udevadm
/lib/ld-musl-aarch64.so.1 (0x730d6173d000)
libsystemd-shared-255.so => /usr/lib/systemd/libsystemd-shared-255.so (0x400000883000)
libblkid.so.1 => /lib/libblkid.so.1 (0x400000bd8000)
libkmod.so.2 => /lib/libkmod.so.2 (0x400000c19000)
libc.musl-aarch64.so.1 => /lib/ld-musl-aarch64.so.1 (0x730d6173d000)
libintl.so.8 => /lib/libintl.so.8 (0x400000c4a000)
libacl.so.1 => /lib/libacl.so.1 (0x400000c6c000)
libcap.so.2 => /lib/libcap.so.2 (0x400000c8d000)
libgcrypt.so.20 => /lib/libgcrypt.so.20 (0x400000cae000)
liblz4.so.1 => /lib/liblz4.so.1 (0x400000d93000)
libmount.so.1 => /lib/libmount.so.1 (0x400000dc4000)
libcrypto.so.3 => /lib/libcrypto.so.3 (0x400000e25000)
libpam.so.0 => /lib/libpam.so.0 (0x40000128b000)
libseccomp.so.2 => /lib/libseccomp.so.2 (0x4000012ac000)
liblzma.so.5 => /lib/liblzma.so.5 (0x4000012dd000)
libzstd.so.1 => /lib/libzstd.so.1 (0x40000132e000)
libeconf.so.0 => /lib/libeconf.so.0 (0x4000013df000)
libz.so.1 => /lib/libz.so.1 (0x400001401000)
libgpg-error.so.0 => /lib/libgpg-error.so.0 (0x400001432000)