From 5ba2855922e53cfd813709ec9dbb00b222768ca7 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 22 Nov 2024 15:40:06 -0500 Subject: Don't fail to launch if no ssh key Signed-off-by: Kent Overstreet --- lib/testrunner | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/testrunner b/lib/testrunner index fae4c85..6cdbbc7 100755 --- a/lib/testrunner +++ b/lib/testrunner @@ -30,8 +30,11 @@ ktest_no_cleanup_tmpdir=1 log_verbose "Testrunner starting" mkdir -p /root/.ssh -cat /host/$home/.ssh/id*.pub > /root/.ssh/authorized_keys -chmod 600 /root/.ssh/authorized_keys +if cat /host/$home/.ssh/id*.pub > /root/.ssh/authorized_keys; then + chmod 600 /root/.ssh/authorized_keys || true +else + echo "Create an ssh key for ssh access" +fi mkdir -p /lib/modules ln -s /host/$ktest_kernel_binary/lib/modules/* /lib/modules -- cgit v1.2.3