d/i/h/klibc-utils: Fix compatibility issue with busybox and improve verbose debug output.
Currently in the case of busybox being installed we generate a lot of unecessary screen output with
Calling hook klibc-utils
cp: not replacing '/var/tmp/mkinitramfs_F62WEu/bin/cat'
cp: not replacing '/var/tmp/mkinitramfs_F62WEu/bin/cpio'
cp: not replacing '/var/tmp/mkinitramfs_F62WEu/bin/dd'
this issue is related to installer-team/busybox!12
This commit adds some debug output and solves the current logic bug where we test the existence of the binary in /sbin
but try to install into /bin
.
Is there a particular reason why we don't use functions like copy_exec
from /usr/share/initramfs-tools/hook-functions
?