Is there any technique or tool that makes it possible to have everything but home directories moved to /linux-5.10 for example and still have the system behaving like if chrooted into that directory?
ls /
/linux-5.10 /root /home
which ls
/linux-5.10/usr/bin/ls
Have you ever seen anything like that? What should I research to know how to do it or understand why it is not possible?
EDIT: I'm just curious if a different skeleton on the rootfs is at all possible, I mean, would it be just a matter of having my package manager to prefix everything upon installation, adjust the $PATH etc or that's impossible because there are binaries that will go nuts if /proc is mounted somewhere else for example.