+ echo root:raspberry + echo 'PermitRootLogin yes' + sed -i 's/PermitRootLogin without-password//g' /etc/ssh/sshd_config + '[' -d custompios_export ']' + rm chroot_script + '[' -d filesystem ']' + rm -rfv filesystem removed 'filesystem/boot/README' removed directory 'filesystem/boot' removed 'filesystem/home/pi/README' removed directory 'filesystem/home/pi' removed 'filesystem/home/root/README' removed directory 'filesystem/home/root' removed directory 'filesystem/home' removed 'filesystem/root/README' removed directory 'filesystem/root' removed directory 'filesystem' + execute_chroot_script /distro/modules/zynthianos /distro/modules/zynthianos/end_chroot_script + '[' -f /.dockerenv ']' + update-binfmts --enable qemu-arm update-binfmts: warning: qemu-arm already enabled in kernel. + mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc mount: binfmt_misc is already mounted or /proc/sys/fs/binfmt_misc busy binfmt_misc is already mounted on /proc/sys/fs/binfmt_misc + true + '[' -d /distro/modules/zynthianos/filesystem ']' + cp -vr --preserve=mode,timestamps /distro/modules/zynthianos/filesystem . '/distro/modules/zynthianos/filesystem' -> './filesystem' '/distro/modules/zynthianos/filesystem/boot' -> './filesystem/boot' '/distro/modules/zynthianos/filesystem/boot/README' -> './filesystem/boot/README' '/distro/modules/zynthianos/filesystem/home' -> './filesystem/home' '/distro/modules/zynthianos/filesystem/home/pi' -> './filesystem/home/pi' '/distro/modules/zynthianos/filesystem/home/pi/README' -> './filesystem/home/pi/README' '/distro/modules/zynthianos/filesystem/home/root' -> './filesystem/home/root' '/distro/modules/zynthianos/filesystem/home/root/README' -> './filesystem/home/root/README' '/distro/modules/zynthianos/filesystem/root' -> './filesystem/root' '/distro/modules/zynthianos/filesystem/root/README' -> './filesystem/root/README' ++ which qemu-arm-static + cp /usr/bin/qemu-arm-static usr/bin cp: cannot create regular file 'usr/bin/qemu-arm-static': Text file busy ++++ echo_red 'build failed, unmounting image...' ++++ echo -e -n '\e[91m' ++++ echo build failed, unmounting image... build failed, unmounting image... ++++ echo -e -n '\e[0m' ++++ cd /distro ++++ unmount_image /distro/workspace/mount force ++++ mount_path=/distro/workspace/mount ++++ force= ++++ '[' 2 -gt 1 ']' ++++ force=force ++++ '[' -n force ']' +++++ sudo lsof /distro/workspace/mount +++++ awk '{print $2}' ++++ for process in $(sudo lsof $mount_path | awk '{print $2}') ++++ echo 'Killing process id PID...' Killing process id PID... ++++ sudo kill -9 PID sudo: kill: command not found ++++ for process in $(sudo lsof $mount_path | awk '{print $2}') ++++ echo 'Killing process id 20077...' Killing process id 20077... ++++ sudo kill -9 20077 sudo: kill: command not found ++++ for process in $(sudo lsof $mount_path | awk '{print $2}') ++++ echo 'Killing process id 20077...' Killing process id 20077... ++++ sudo kill -9 20077 sudo: kill: command not found ++++ for process in $(sudo lsof $mount_path | awk '{print $2}') ++++ echo 'Killing process id 20077...' Killing process id 20077... ++++ sudo kill -9 20077 sudo: kill: command not found ++++ for process in $(sudo lsof $mount_path | awk '{print $2}') ++++ echo 'Killing process id 20077...' Killing process id 20077... ++++ sudo kill -9 20077 sudo: kill: command not found ++++ for process in $(sudo lsof $mount_path | awk '{print $2}') ++++ echo 'Killing process id 20077...' Killing process id 20077... ++++ sudo kill -9 20077 sudo: kill: command not found ++++ for process in $(sudo lsof $mount_path | awk '{print $2}') ++++ echo 'Killing process id 20077...' Killing process id 20077... ++++ sudo kill -9 20077 sudo: kill: command not found ++++ for process in $(sudo lsof $mount_path | awk '{print $2}') ++++ echo 'Killing process id 20077...' Killing process id 20077... ++++ sudo kill -9 20077 sudo: kill: command not found ++++ for process in $(sudo lsof $mount_path | awk '{print $2}') ++++ echo 'Killing process id 20077...' Killing process id 20077... ++++ sudo kill -9 20077 sudo: kill: command not found ++++ for process in $(sudo lsof $mount_path | awk '{print $2}') ++++ echo 'Killing process id 20077...' Killing process id 20077... ++++ sudo kill -9 20077 sudo: kill: command not found ++++ for process in $(sudo lsof $mount_path | awk '{print $2}') ++++ echo 'Killing process id 20077...' Killing process id 20077... ++++ sudo kill -9 20077 sudo: kill: command not found ++++ for process in $(sudo lsof $mount_path | awk '{print $2}') ++++ echo 'Killing process id 20077...' Killing process id 20077... ++++ sudo kill -9 20077 sudo: kill: command not found +++++ sudo mount +++++ grep /distro/workspace/mount +++++ sort -r +++++ awk -F ' on ' '{print $2}' +++++ awk '{print $1}' ++++ for m in $(sudo mount | grep $mount_path | awk -F " on " '{print $2}' | awk '{print $1}' | sort -r) ++++ echo 'Unmounting /distro/workspace/mount/var/cache/apt...' Unmounting /distro/workspace/mount/var/cache/apt... ++++ sudo umount /distro/workspace/mount/var/cache/apt ++++ for m in $(sudo mount | grep $mount_path | awk -F " on " '{print $2}' | awk '{print $1}' | sort -r) ++++ echo 'Unmounting /distro/workspace/mount/dev/pts...' Unmounting /distro/workspace/mount/dev/pts... ++++ sudo umount /distro/workspace/mount/dev/pts ++++ for m in $(sudo mount | grep $mount_path | awk -F " on " '{print $2}' | awk '{print $1}' | sort -r) ++++ echo 'Unmounting /distro/workspace/mount/dev...' Unmounting /distro/workspace/mount/dev... ++++ sudo umount /distro/workspace/mount/dev umount: /distro/workspace/mount/dev: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).) ++++ for m in $(sudo mount | grep $mount_path | awk -F " on " '{print $2}' | awk '{print $1}' | sort -r) ++++ echo 'Unmounting /distro/workspace/mount/boot...' Unmounting /distro/workspace/mount/boot... ++++ sudo umount /distro/workspace/mount/boot ++++ for m in $(sudo mount | grep $mount_path | awk -F " on " '{print $2}' | awk '{print $1}' | sort -r) ++++ echo 'Unmounting /distro/workspace/mount...' Unmounting /distro/workspace/mount... ++++ sudo umount /distro/workspace/mount umount: /distro/workspace/mount: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).) ++++ true ++++ echo_red -e '\nBUILD FAILED!\n' ++++ echo -e -n '\e[91m' ++++ echo -e '\nBUILD' 'FAILED!\n' BUILD FAILED! ++++ echo -e -n '\e[0m' + exit 1 wyleu@wyleu-HP-G72-Notebook-PC:~/ZynthianOS/src$