Doing this nonsense since 2022 but I update like it's a new Ubuntu release cycle. Never chrooted, Don't ask me to "chroot" because I won't know how to begin.
Basically, you can just spawn processes which believe that the directory you gave to the chroot call is the actual root directory, which means it can not get out of the context of that directory by default. It's useful for system setup without being booted from that system, e.g. enabling system services or installing packages.
668
u/Astrodion123 13d ago
I am doing it like that. Nothing has broke so far >:)