diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2023-10-27 08:08:27 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2023-10-27 08:29:44 +0000 |
commit | 61e76e161d3bcf22e6a9db98db65283103c7baf0 (patch) | |
tree | 0672794f51264922343f54335dcdae1fb4b9adc7 /tcwg-base | |
parent | cc6dcc2d54f17918bf8acde8d6d29ed2d651feba (diff) |
tcwg-host/run_on_bare_machine: Fix startup of host container on tcwg-ex42-01
... which has password authentication enabled for root in ssh server
on the bare machine (on port 22). This makes "sysctl" wait for
password input until timeout.
Change-Id: Ib3dea3cc6e4d8402ec623a8f6691bde494d4e62d
Diffstat (limited to 'tcwg-base')
-rwxr-xr-x | tcwg-base/tcwg-host/run_on_bare_machine | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tcwg-base/tcwg-host/run_on_bare_machine b/tcwg-base/tcwg-host/run_on_bare_machine index 9fe2d1f3..a30ff5aa 100755 --- a/tcwg-base/tcwg-host/run_on_bare_machine +++ b/tcwg-base/tcwg-host/run_on_bare_machine @@ -1,3 +1,10 @@ #!/bin/bash -key= + +key=NOKEY +if [ "$key" = "NOKEY" ]; then + # $key is overrided by "sed" in tcwg-base/tcwg-host/run.sh . + echo "WARNING: $0 is supported only for privileged host containers." + exit 1 +fi + exec ssh -oStrictHostKeyChecking=no -i "$key" -p22 root@localhost "$(basename $0)" "$@" |