While reworking my backup strategy, I wanted to run net/rsync (through ssh) in a stripped down chroot and had some trouble getting rsync to work.
I used the ldd(1) method, to equip the chroot with the required binaries and everything was in place. I also tried to step-by-step, strip the chroot down after extracting base.txz into it.
In the end, I figured out that rsync needs /var/run/ld-elf.so.hints to run, while it only complained about [FILE/usr/local/lib/libiconv.so.2][/FILE] was missing (ld-elf.so.hints wasn't listed by ldd).
The host, where rsync runs in chroot is FreeBSD 11.2-RELEASE-p9.
It works now, but if anyone could explain what that ld-elf.so.hints is, I'd be thankful. (even more if explained in a way, that a person with limited knowledge of C could understand
)
I used the ldd(1) method, to equip the chroot with the required binaries and everything was in place. I also tried to step-by-step, strip the chroot down after extracting base.txz into it.
In the end, I figured out that rsync needs /var/run/ld-elf.so.hints to run, while it only complained about [FILE/usr/local/lib/libiconv.so.2][/FILE] was missing (ld-elf.so.hints wasn't listed by ldd).
The host, where rsync runs in chroot is FreeBSD 11.2-RELEASE-p9.
It works now, but if anyone could explain what that ld-elf.so.hints is, I'd be thankful. (even more if explained in a way, that a person with limited knowledge of C could understand
