diff options
Diffstat (limited to 'debian/tests/utils/mkinitramfs')
-rwxr-xr-x | debian/tests/utils/mkinitramfs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/debian/tests/utils/mkinitramfs b/debian/tests/utils/mkinitramfs index 6bc70f4..d66ed75 100755 --- a/debian/tests/utils/mkinitramfs +++ b/debian/tests/utils/mkinitramfs @@ -109,10 +109,9 @@ copy_exec /sbin/dmsetup copy_exec /usr/bin/dpkg-deb copy_exec /bin/tar -# assume ossl-modules/legacy.so and libgcc_s.so are relative to the linked libcryptsetup.so +# assume ossl-modules/legacy.so is relative to the linked libcryptsetup.so libdir="$(env --unset=LD_PRELOAD ldd /sbin/cryptsetup | sed -nr '/.*=>\s*(\S+)\/libcryptsetup\.so\..*/ {s//\1/p;q}')" copy_exec "$libdir/ossl-modules/legacy.so" || true -copy_libgcc "$libdir" for p in /sbin/cryptsetup /sbin/lvm /sbin/mdadm /sbin/mke2fs /sbin/mkfs.btrfs /bin/btrfs; do if [ -x "$p" ]; then |