sed -i "s|^\(eval.\+\)$|#\1|g" /home/pi/vdesktop/vdesktop pi@raspberry48:~ $ sed -i "s|^\(export DISPLAY.\+\)$|#\1|g" /home/pi/vdesktop/profile pi@raspberry48:~ $ sed -i "s|^\(eval.\+\)$|#\1|g" /home/pi/vdesktop/profile pi@raspberry48:~ $ sed -i "s|^\(sleep.\+\)$|#\1|g" /home/pi/vdesktop/profile pi@raspberry48:~ $ sed -i "s|^\(lxpanelctl.\+\)$|#\1|g" /home/pi/vdesktop/profile pi@raspberry48:~ $ ls -l /media/netdir/source/raspberrypi total 0 drwxrwxrwx+ 1 systemd-network users 18 Dec 6 19:53 3 drwxrwxrwx+ 1 99 99 18 Feb 9 21:53 4-01_rasp drwxrwxrwx+ 1 99 99 18 Feb 10 18:45 4-02_readynas drwxrwxrwx+ 1 root root 18 Mar 4 20:08 4-04_docker_readynas drwxrwxrwx+ 1 root root 18 Mar 4 21:58 4-05_chroot_readynas drwxrwxrwx+ 1 pi pi 18 Mar 23 20:07 4-06_vdesktop_readynas drwxrwxrwx+ 1 99 99 18 Dec 6 19:46 org pi@raspberry48:~ $ mkdir -p /media/netdir/source/raspberrypi/4-07_vdesktop_readynas pi@raspberry48:~ $ inset_line=`grep -n systemd-nspawn /home/pi/vdesktop/vdesktop | tail -1 | cut -f 1 -d:` pi@raspberry48:~ $ let inset_line2=inset_line+1 pi@raspberry48:~ $ sed -i "${inset_line2}iumount \${mntpnt}/mnt/compile" /home/pi/vdesktop/vdesktop pi@raspberry48:~ $ sed -i "${inset_line}imount --bind /media/netdir/source/raspberrypi/4-07_vdesktop_readynas \${mntpnt}/mnt/compile" /home/pi/vdesktop/vdesktop pi@raspberry48:~ $ sed -i "${inset_line}imkdir -p \${mntpnt}/mnt/compile" /home/pi/vdesktop/vdesktop pi@raspberry48:~ $ ls -l /mnt/runimg total 18797568 -rwxrwxrwx+ 1 99 99 4555014144 Jan 7 22:32 2019-04-08-raspbian-stretch_chroot.img -rwxrwxrwx+ 1 systemd-timesync 98 3481272320 Mar 23 22:09 2019-04-08-raspbian-stretch-make-new.img -rwxrwxrwx+ 1 root root 3481272320 Dec 30 09:55 2019-04-08-raspbian-stretch-make-old.img -rwx------+ 1 99 99 3829399552 Jan 26 21:38 2019-09-26-raspbian-buster_jin.img drwxrwxrwx+ 1 root root 160 Dec 19 22:41 bak -rw-rw-rw-+ 1 99 99 1728053248 Mar 5 00:10 readynas_compile_tool2.img -rw-rw-rw-+ 1 99 99 2173698048 Jan 8 23:25 readynas_compile_tool.img pi@raspberry48:~ $ sudo /home/pi/vdesktop/vdesktop /mnt/runimg/readynas_compile_tool2.img Message from Botspot: Questions or suggestions? https://www.raspberrypi.org/forums/viewtopic.php?&t=251757 OK, looks like you specified a disk image. /dev/loop0 Your cursor color will be blue until the container is terminated. Booting in 5 seconds. Spawning container virtualdesktop on /media/pi/vdesktop. Press ^] three times within 1s to kill container. systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR) Detected virtualization 'systemd-nspawn'. Detected architecture 'arm'. Welcome to Debian GNU/Linux 8 (jessie)! Set hostname to . Failed to install release agent, ignoring: No such file or directory Cannot add dependency job for unit dbus.socket, ignoring: Unit dbus.socket failed to load: No such file or directory. Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. [ OK ] Reached target Remote File Systems (Pre). [ OK ] Reached target Paths. [ OK ] Reached target Encrypted Volumes. [ OK ] Reached target Swap. [ OK ] Created slice Root Slice. [ OK ] Created slice User and Session Slice. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. [ OK ] Listening on Delayed Shutdown Socket. [ OK ] Listening on Journal Socket (/dev/log). [ OK ] Listening on Journal Socket. [ OK ] Created slice System Slice. [ OK ] Created slice system-getty.slice. [ OK ] Listening on Syslog Socket. [ OK ] Reached target Sockets. Starting Copy rules generated while the root was ro... Mounting FUSE Control File System... Starting Journal Service... [ OK ] Started Journal Service. [ OK ] Reached target Slices. Starting Remount Root and Kernel File Systems... [ OK ] Started Remount Root and Kernel File Systems. Starting Various fixups to make systemd work better on Debian... Starting Load/Save Random Seed... [ OK ] Reached target Local File Systems (Pre). [ OK ] Reached target Local File Systems. [ OK ] Reached target Remote File Systems. Starting Trigger Flushing of Journal to Persistent Storage... Starting Create Volatile Files and Directories... [ OK ] Mounted FUSE Control File System. [ OK ] Started Copy rules generated while the root was ro. [ OK ] Started Load/Save Random Seed. Starting LSB: Raise network interfaces.... [ OK ] Started Various fixups to make systemd work better on Debian. [ OK ] Started Trigger Flushing of Journal to Persistent Storage. [ OK ] Started Create Volatile Files and Directories. Starting Update UTMP about System Boot/Shutdown... [ OK ] Started Update UTMP about System Boot/Shutdown. [ OK ] Started LSB: Raise network interfaces.. [ OK ] Reached target Network. [ OK ] Reached target System Initialization. [ OK ] Reached target Timers. [ OK ] Reached target Basic System. Starting Regular background program processing daemon... [ OK ] Started Regular background program processing daemon. Starting /etc/rc.local Compatibility... Starting System Logging Service... Starting Permit User Sessions... [ OK ] Started /etc/rc.local Compatibility. [ OK ] Started Permit User Sessions. Starting Console Getty... [ OK ] Started Console Getty. [ OK ] Reached target Login Prompts. [ OK ] Started System Logging Service. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 8 raspberry1 console raspberry1 login: root Password: Login incorrect raspberry1 login: root Password: Login incorrect raspberry1 login: Login timed out after 60 seconds. Debian GNU/Linux 8 raspberry1 console raspberry1 login: pi  root Password: Login incorrect raspberry1 login: jin^H^H^H Password: Login incorrect raspberry1 login: root Password: Login incorrect raspberry1 login: pi Password: Login incorrect raspberry1 login: Login timed out after 60 seconds. Debian GNU/Linux 8 raspberry1 console raspberry1 login: Debian GNU/Linux 8 raspberry1 console raspberry1 login: Debian GNU/Linux 8 raspberry1 console raspberry1 login: Debian GNU/Linux 8 raspberry1 console raspberry1 login: Debian GNU/Linux 8 raspberry1 console raspberry1 login: Container virtualdesktop terminated by signal KILL. The machine has exited, but you can still access the guest. Press Ctrl+C to unmount /media/pi/vdesktop ^C Preparing to exit... Unmounted and exiting... pi@raspberry48:~ $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:~ $ cd /mnt/compile pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ git clone git://github.com/ariya/phantomjs.git fatal: could not create work tree dir 'phantomjs': Permission denied pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ cd phantomjs -bash: cd: phantomjs: No such file or directory pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ git checkout 2.1.1 fatal: not a git repository (or any of the parent directories): .git pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ git submodule init fatal: not a git repository (or any of the parent directories): .git pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ git submodule update fatal: not a git repository (or any of the parent directories): .git pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ echo "date > BUILD_START" > ./make_cmd.sh -bash: ./make_cmd.sh: Permission denied pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ echo "python ./build.py -c --release" >> ./make_cmd.sh -bash: ./make_cmd.sh: Permission denied pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ echo "##--git-clean-qtbase --git-clean-qtwebkit --jobs 2" >> ./make_cmd.sh -bash: ./make_cmd.sh: Permission denied pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ echo "date > BUILD_END" >> ./make_cmd.sh -bash: ./make_cmd.sh: Permission denied pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ chmod 751 ./make_cmd.sh chmod: cannot access './make_cmd.sh': No such file or directory pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ date Wed 25 Mar 2020 08:29:14 PM JST pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ ./make_cmd.sh -bash: ./make_cmd.sh: No such file or directory pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ echo 00:00:02 00:00:02 pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ date Wed 25 Mar 2020 08:29:27 PM JST pi@raspberry48:/mnt/compile $ root@raspberry1 -bash: root@raspberry1: command not found pi@raspberry48:/mnt/compile $ compile finish -bash: compile: command not found pi@raspberry48:/mnt/compile $ shutdown -h now Failed to set wall message, ignoring: Interactive authentication required. Failed to power off system via logind: Interactive authentication required. Failed to open initctl fifo: Permission denied Failed to talk to init daemon. pi@raspberry48:/mnt/compile $ sed -i "s|^#\+\(eval.\+\)$|\1|g" /home/pi/vdesktop/vdesktop pi@raspberry48:/mnt/compile $ sed -i "s|^#\+\(export DISPLAY.\+\)$|\1|g" /home/pi/vdesktop/profile pi@raspberry48:/mnt/compile $ sed -i "s|^#\+\(eval.\+\)$|\1|g" /home/pi/vdesktop/profile pi@raspberry48:/mnt/compile $ sed -i "s|^#\+\(sleep.\+\)$|\1|g" /home/pi/vdesktop/profile pi@raspberry48:/mnt/compile $ sed -i "s|^#\+\(lxpanelctl.\+\)$|\1|g" /home/pi/vdesktop/profile pi@raspberry48:/mnt/compile $ sed -i "${inset_line}d" /home/pi/vdesktop/vdesktop pi@raspberry48:/mnt/compile $ sed -i "${inset_line}d" /home/pi/vdesktop/vdesktop pi@raspberry48:/mnt/compile $ sed -i "${inset_line2}d" /home/pi/vdesktop/vdesktop pi@raspberry48:/mnt/compile $