Skip to content

Commit b9fd84f

Browse files
author
dongyongtao
committed
conf/evalsoc: fix when found none kvm_guest_run_case.sh, will trigger bash: cannot set terminal process group (-1): Inappropriate ioctl for device
cat rootfs_mini/etc/init.d/rcS /bin/mount -a mkdir -p /dev /bin/mount -t devtmpfs devtmpfs /dev cat /etc/motd set -x echo -e "\n make sure mount the host share its / when launch qemu" mkdir -p /mnt; mount -t 9p -o trans=virtio myshare_tag /mnt 2>/dev/null || echo \"Warning: Failed to mount myshare_tag, check if you provide it\" env; ls -la /bin/sh cp /mnt/bin/bash /bin/bash; unlink /bin/sh; ln -s /bin/bash /bin/sh mkdir -p /usr/lib64/lp64d/; mkdir -p /lib64/lp64d/; mkdir -p /lib cp /mnt/usr/lib64/lp64d/libreadline.so.8 /usr/lib64/lp64d cp /mnt/usr/lib64/lp64d/libhistory.so.8 /usr/lib64/lp64d/ cp /mnt/usr/lib64/lp64d/libncurses.so.6 /usr/lib64/lp64d/ cp /mnt/lib64/lp64d/libc.so.6 /lib64/lp64d/ cp /mnt/lib/ld-linux-riscv64-lp64d.so.1 /lib echo -e "Has copied bash and libraries needed from mounted host /, now exec /bin/bash" /bin/bash -c "ls"; export SHELL=/bin/bash exec /bin/bash -c "echo Will find /root/kvm_guest_run_case.sh and execute it if any...; if [ -f /mnt/root/kvm_guest_run_case.sh ]; then cd /mnt/root; target_dir=/mnt/root ./kvm_guest_run_case.sh;/bin/bash; fi" Signed-off-by: dongyongtao <dongyongtao@nucleisys.com>
1 parent df8fe1a commit b9fd84f

1 file changed

File tree

49 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)