Is it possible to start a desktop environment entirely in systemd-nspawn or chroot?
I want to be able to boot to a console, then optionally enter a chroot and launch Gnome or another desktop environment.
Launching a DM from chroot is in fact possible (if configured correctly). A thorough tutorial can be found here. The process can be summarized as such:
/proc, etc) from your host to your chroot.
All of the corresponding commands can be synthesized into a bash script for convenience.