3
1
I didn't find a question like this. I have a bash script (running in Debian) that start a systemd-nspawn
session. After that I would like to continue my script as I am in the spawned machine:
#!/bin/bash
systemd-nspawn -q --bind /usr/bin/qemu-arm-static -D /mnt/project /bin/bash
apt-get update
apt-get -y upgrade
After executing the systemd-nspawn
command, the script is suspended and the prompt of the console is inside the spawned system. When I exit the script resumes but in the LOCAL machine.
1In 2019, I think you have to pass
systemd-nspawn --pipe
for this to work. – 425nesp – 2019-10-23T04:56:23.703