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.
/proc
is mounted somewhere else for example. Hope that clears up my question a little bit. – cvsguimaraes Feb 01 '21 at 04:15du
(or similar tools). However the out put of these tools on the root is not to useful anyway. But maybe there are other unintended consequences.) And what is this I hear that onlyroot
user can get the list of hidden directories. – ctrl-alt-delor Feb 01 '21 at 16:52