chroot too many levels of symbolic links
September 09, 2022 —
BarryK
There is a serious problem in the '3buildeasydistro' script in woofQ, building Easy Bookworm. In a few places it runs "chroot rootfs-complete ...", that now fail. Let's see, this works:
# chroot rootfs-complete /bin/busybox ls
audit etc lib64 puninstall.sh usr
bin files mnt root var
boot home opt sbin
dev lib proc tmp
#
This doesn't:
# chroot rootfs-complete /bin/ls
chroot: failed to run command ‘/bin/ls’: Too many levels of symbolic links
#
Where 'ls' is a binary, not a symlink. I find that error message to be confusing. It looks like 'ls' is having trouble finding its shared libraries. 'busybox' is statically-linked, so no problem.
Hmmm, will investigate further.
EDIT:
Yes, /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 was a symlink to
itself. So, a circular loop.
A quick note: currently working on Easy
Bookworm. Have bumped 'limine' bootloader to version 3.21 (up
from 3.16).
Tags: easy