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 pi pi 18 Mar 25 20:46 4-07_vdesktop_readynas drwxrwxrwx+ 1 root root 18 Apr 1 21:54 4-08_new_raspi drwxrwxrwx+ 1 99 99 18 Dec 6 19:46 org pi@raspberry48:~ $ mkdir -p /media/netdir/source/raspberrypi/4-08_new_raspi 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-08_new_raspi \${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 91500856 -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 -rw-r--r--+ 1 root root 5934940160 Apr 18 09:16 2020-02-13-raspbian-buster_jin-make.img -rw-rw-rw-+ 1 root root 31180455936 Apr 15 21:39 aarch64_bak.img -rw-rw-rw-+ 1 root root 31180455936 Apr 14 23:08 aarch64.img drwxrwxrwx+ 1 root root 160 Dec 19 22:41 bak -rw-rw-rw-+ 1 root root 6144655360 Apr 15 21:39 debian_aarch64.img -rw-rw-rw-+ 1 99 99 1728053248 Mar 25 22:50 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/2020-02-13-raspbian-buster_jin-make.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 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid) Detected virtualization systemd-nspawn. Detected architecture arm. Failed to create symlink /sys/fs/cgroup/net_prio: Read-only file system Welcome to Raspbian GNU/Linux 10 (buster)! Set hostname to . File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling. Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.) [ OK ] Created slice system-getty.slice. [ OK ] Started Forward Password Requests to Wall Directory Watch. [ OK ] Reached target Swap. [ OK ] Created slice User and Session Slice. [ OK ] Listening on Journal Socket (/dev/log). [ OK ] Listening on initctl Compatibility Named Pipe. [ OK ] Reached target Slices. [ OK ] Listening on Journal Socket. Starting Restore / save the current clock... Mounting RPC Pipe File System... Mounting FUSE Control File System... Starting Remount Root and Kernel File Systems... [UNSUPP] Starting of /dev/serial1 not supported. [DEPEND] Dependency failed for Configure Bluetooth Modems connected by UART. hciuart.service: Job hciuart.service/start failed with result 'dependency'. Starting Set the console keyboard layout... [ OK ] Listening on Syslog Socket. Starting Journal Service... Starting Helper to synchronize boot up for ifupdown... [ OK ] Mounted RPC Pipe File System. [ OK ] Mounted FUSE Control File System. [ OK ] Started Restore / save the current clock. [ OK ] Started Helper to synchronize boot up for ifupdown. systemd-remount-fs.service: Main process exited, code=exited, status=1/FAILURE systemd-remount-fs.service: Failed with result 'exit-code'. [FAILED] Failed to start Remount Root and Kernel File Systems. See 'systemctl status systemd-remount-fs.service' for details. [ OK ] Started Journal Service. Starting Create System Users... Starting Flush Journal to Persistent Storage... [ OK ] Started Create System Users. Starting Create Static Device Nodes in /dev... [ OK ] Started Set the console keyboard layout. [ OK ] Started Create Static Device Nodes in /dev. [ OK ] Started Dispatch Password Requests to Console Directory Watch. [ OK ] Reached target Local Encrypted Volumes. [ OK ] Reached target Paths. [ OK ] Reached target Local File Systems (Pre). [ OK ] Reached target Local File Systems. Starting Set console font and keymap... Starting Raise network interfaces... Starting Preprocess NFS configuration... Starting Tell Plymouth To Write Out Runtime Data... [ OK ] Started Flush Journal to Persistent Storage. Starting Create Volatile Files and Directories... [ OK ] Started Set console font and keymap. [ OK ] Started Preprocess NFS configuration. [ OK ] Reached target NFS client services. [ OK ] Reached target Remote File Systems (Pre). [ OK ] Reached target Remote File Systems. [ OK ] Started Tell Plymouth To Write Out Runtime Data. [ OK ] Started Create Volatile Files and Directories. [ OK ] Reached target System Time Synchronized. Starting Update UTMP about System Boot/Shutdown... [ OK ] Started Update UTMP about System Boot/Shutdown. [ OK ] Reached target System Initialization. [ OK ] Started Daily Cleanup of Temporary Directories. [ OK ] Started Daily rotation of log files. [ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket. [ OK ] Listening on triggerhappy.socket. [ OK ] Started Daily man-db regeneration. [ OK ] Started Daily apt download activities. [ OK ] Started Daily apt upgrade and clean activities. [ OK ] Reached target Timers. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Reached target Sockets. [ OK ] Reached target Basic System. Starting dphys-swapfile - set up, mount/unmount, and delete a swap file... Starting Disk Manager... [ OK ] Started D-Bus System Message Bus. Starting WPA supplicant... Starting Check for v3d driver... Starting System Logging Service... Starting triggerhappy global hotkey daemon... Starting LSB: Resize the root filesystem to fill partition... Starting rng-tools.service... Starting LSB: Switch to ondemand cpu governor (unless shift key is pressed)... Starting Login Service... Starting Avahi mDNS/DNS-SD Stack... [ OK ] Started Regular background program processing daemon. Starting Check for Raspberry Pi EEPROM updates... Starting dhcpcd on all interfaces... [ OK ] Started Raise network interfaces. [FAILED] Failed to start rng-tools.service. See 'systemctl status rng-tools.service' for details. [ OK ] Started triggerhappy global hotkey daemon. [ OK ] Started System Logging Service. [ OK ] Started Check for v3d driver. [ OK ] Started dhcpcd on all interfaces. [FAILED] Failed to start dphys-swapfile - set up, mount/unmount, and delete a swap file. See 'systemctl status dphys-swapfile.service' for details. [ OK ] Started Login Service. [ OK ] Started Avahi mDNS/DNS-SD Stack. [ OK ] Started WPA supplicant. Starting Authorization Manager... [ OK ] Reached target Network. Starting /etc/rc.local Compatibility... Starting Permit User Sessions... [ OK ] Started LSB: Switch to ondemand cpu governor (unless shift key is pressed). [FAILED] Failed to start LSB: Resize the root filesystem to fill partition. See 'systemctl status resize2fs_once.service' for details. My IP address is 192.168.1.248 2400:2411:aa2:8300:dea6:32ff:fe70:cb6c [ OK ] Started /etc/rc.local Compatibility. [ OK ] Started Permit User Sessions. Starting Light Display Manager... Starting Hold until boot process finishes up... [ OK ] Started Hold until boot process finishes up. [ OK ] Started Console Getty. [ OK ] Reached target Login Prompts. [ OK ] Started Authorization Manager. [ OK ] Started Light Display Manager. [ OK ] Started Disk Manager. [ OK ] Stopped Light Display Manager. Starting Light Display Manager... [FAILED] Failed to start Check for Raspberry Pi EEPROM updates. See 'systemctl status rpi-eeprom-update.service' for details. [ OK ] Reached target Multi-User System. [ OK ] Started Light Display Manager. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Raspbian GNU/Linux 10 raspberrypi console raspberrypi login: root Password: Last login: Sat Apr 18 09:15:45 JST 2020 on console Linux raspberrypi 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@raspberrypi:~# ls -l total 0 root@raspberrypi:~# echo 00:00:00 00:00:00 root@raspberrypi:~# date Sat 18 Apr 2020 09:23:40 AM JST root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# ls -l total 0 root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# pwd /root root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# compile finish -bash: compile: command not found root@raspberrypi:~# shutdown -h now [ OK ] Stopped target Timers. [ OK ] Stopped Daily man-db regeneration. [ OK ] Stopped target Graphical Interface. Stopping Disk Manager... [ OK ] Stopped Daily rotation of log files. [ OK ] Stopped target Multi-User System. Stopping LSB: Switch to ondemand cpu governor (unless shift key is pressed)... Stopping System Logging Service... [ OK ] Stopped Check for v3d driver. Stopping Regular background program processing daemon... Stopping Authorization Manager... [ OK ] Removed slice system-getty.slice. [ OK ] Stopped target Login Prompts. Stopping Console Getty... Hangup root@raspberrypi:~# Stopping triggerhappy global hotkey daemon... Unmounting RPC Pipe File System... Stopping Avahi mDNS/DNS-SD Stack... [ OK ] Stopped Daily Cleanup of Temporary Directories. Stopping Session c1 of user root. [ OK ] Stopped Daily apt upgrade and clean activities. [ OK ] Stopped Daily apt download activities. [ OK ] Stopped target System Time Synchronized. [ OK ] Stopped Disk Manager. [ OK ] Stopped System Logging Service. [ OK ] Stopped triggerhappy global hotkey daemon. [ OK ] Stopped Regular background program processing daemon. [ OK ] Stopped Console Getty. [ OK ] Stopped Session c1 of user root. Stopping User Manager for UID 0... Stopping Login Service... [ OK ] Stopped /etc/rc.local Compatibility. [ OK ] Stopped LSB: Switch to ondemand cpu governor (unless shift key is pressed). [ OK ] Unmounted RPC Pipe File System. [ OK ] Stopped Avahi mDNS/DNS-SD Stack. [ OK ] Stopped Authorization Manager. [ OK ] Stopped Login Service. [ OK ] Stopped User Manager for UID 0. Stopping User Runtime Directory /run/user/0... [ OK ] Unmounted /run/user/0. [ OK ] Stopped User Runtime Directory /run/user/0. [ OK ] Removed slice User Slice of UID 0. Stopping Permit User Sessions... [ OK ] Stopped Permit User Sessions. [ OK ] Stopped target Remote File Systems. Unmounting /mnt/compile... [ OK ] Unmounted /mnt/compile. [ OK ] Stopped target Remote File Systems (Pre). [ OK ] Stopped target NFS client services. [ OK ] Stopped target Network. Stopping dhcpcd on all interfaces... Stopping Raise network interfaces... Stopping WPA supplicant... [ OK ] Stopped WPA supplicant. Stopping D-Bus System Message Bus... [ OK ] Stopped D-Bus System Message Bus. [ OK ] Stopped Raise network interfaces. [ OK ] Stopped dhcpcd on all interfaces. [ OK ] Stopped target Basic System. [ OK ] Stopped target Sockets. [ OK ] Closed D-Bus System Message Bus Socket. [ OK ] Closed Avahi mDNS/DNS-SD Stack Activation Socket. [ OK ] Closed triggerhappy.socket. [ OK ] Closed Syslog Socket. [ OK ] Stopped target Slices. [ OK ] Removed slice User and Session Slice. [ OK ] Stopped target Paths. [ OK ] Stopped target System Initialization. Stopping Update UTMP about System Boot/Shutdown... [ OK ] Stopped target Local Encrypted Volumes. [ OK ] Stopped Forward Password Requests to Wall Directory Watch. [ OK ] Stopped Dispatch Password Requests to Console Directory Watch. Stopping Restore / save the current clock... [ OK ] Stopped Restore / save the current clock. [ OK ] Stopped Update UTMP about System Boot/Shutdown. [ OK ] Stopped Create Volatile Files and Directories. [ OK ] Stopped target Local File Systems. Unmounting /run/systemd/nspawn/incoming... Unmounting /tmp... Unmounting /boot... [FAILED] Failed unmounting /tmp. [ OK ] Unmounted /run/systemd/nspawn/incoming. [ OK ] Stopped target Swap. [ OK ] Unmounted /boot. [ OK ] Reached target Unmount All Filesystems. [ OK ] Stopped target Local File Systems (Pre). [ OK ] Stopped Create Static Device Nodes in /dev. [ OK ] Stopped Create System Users. [ OK ] Reached target Shutdown. [ OK ] Reached target Final Step. [ OK ] Started Power-Off. [ OK ] Reached target Power-Off. Container virtualdesktop has been shut down. 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:~ $ 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:~ $ sed -i "${inset_line}d" /home/pi/vdesktop/vdesktop pi@raspberry48:~ $ sed -i "${inset_line}d" /home/pi/vdesktop/vdesktop pi@raspberry48:~ $ sed -i "${inset_line2}d" /home/pi/vdesktop/vdesktop pi@raspberry48:~ $