The ldd looks correct and the environment clean. Parsing of that output should not end up in "/lib/libgcwrap.so". So let's check if the output is the same when running as root in that environment.
Can you modify copy_exec in /usr/share/initramfs-tools/hook-functions to print the ldd output:
The ldd looks correct and the environment clean. Parsing of that output should not end up in "/lib/libgcwrap .so". So let's check if the output is the same when running as root in that environment.
Can you modify copy_exec in /usr/share/ initramfs- tools/hook- functions to print the ldd output:
```
# Copy the dependant libraries
echo "DEBUG: ldd ${src}"
env --unset=LD_PRELOAD ldd "${src}"
```