dex4er / fakechroot

gives a fake chroot environment
GNU Lesser General Public License v2.1
295 stars 73 forks source link

Fakechroot not working with musl - ‘sh’: No such file or directory #106

Open absolutelynothinghere opened 2 years ago

absolutelynothinghere commented 2 years ago

While on a glibc system, I'm unable to fakechroot into a musl system:

$ fakechroot chroot ./muslrootdir/ sh
/usr/bin/chroot: failed to run command ‘sh’: No such file or directory

I have confirmed that sh indeed exists, as running sudo chroot ./muslrootdir/ works fine.

galaxy4public commented 1 year ago

I am actually not sure that faking chroot() into a directory with an entirely different libc ABI is even possible in userspace.