the limitation first: wifi connection doesn’t andwork this means you can’t download packages in the systemd-nspawn container. if lan connection to the internet works i don’t know .
systemd-nspawn can be used for namespace container for debugging, testing, building and for system rescue as chroot replacement.
i want to describe how to use systemd-nspawn for maintain a “dead” system:
- boot a live system, open a konsole and use root privileges
- mount every relevant partition
#in my example im using partitions for /home /boot and / on /dev/sda and / is on /sda2 mount /dev/sda2 /mnt mount /dev/sda1 /mnt/boot mount /dev/sda2 /mnt/home
- start the container
systemd-nspawn -D /mnt
and you can boot the “dead” system if you want
systemd-nspawn -D /mnt -b
- do the maintain
#pacman -Syuu #or what else
- shut down the container
but if you had booted the kernel