Hacker News new | ask | show | jobs
by ofrzeta 898 days ago
I've found systemd-nspawn to be a great alternative to the olde chroot method for fixing systems in a rescue shell. systemd-nspawn -D /mnt mounts the system like chroot but the real value comes with systemd-nspawn -b -D /mnt/ that actually boots the system in a container.
2 comments

I use systemd-nspawn as a built-in alternative to LXC/LXD.
Thanks! I hadn't considered that use case.