chroot means "change root". It was developed by Bill Joy to help him install UNIX more easily. It simply tricks the shell into believing the designated directory is / and nothing exists above it. There are security benefits to chrooting some software, and it can, as was used in this thread, be used to configure a system inside of another system. The reason it's so useful in live sessions is because mounting a fixed drive under /media and then running "sudo chroot /media/something" allows you to add software, change passwords, add and remove users, and set up GRUB on it with the normal, everyday commands you'd normally use on a normal, everyday running machine, without any of it affecting your ephemeral session or the USB/DVD media.xaol wrote: Sat Mar 16, 2024 1:04 pm someone else here may be better at explaining how chroot works. generally i believe it is usually used from a live environment.
The alternative would be manually editing /media/something/etc/passwd, /media/something/etc/group, temporarily redirecting apt-get default locations by setting a new RootDir in apt.conf, and so forth.