site  contact  subhomenews

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 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.

Yes, /lib/x86_64-linux-gnu/ 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