2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-12-03 23:57:06 +00:00

fix(xcat-core): xdsh_o expects the OpenSSH banner before the debug prefix

xdsh_o fails on Ubuntu 26.04 and passes everywhere else. OpenSSH 10 prints its version banner
as "debug1: OpenSSH_10.2p1 ...", so the banner is no longer the first text after the node
name and the check for "<node>: OpenSSH" stops matching. The option reached ssh and the
verbose output arrived.

Match the banner itself. The case keeps its check for "<node>: debug", which is what holds the
node prefix down, and the banner appears only when -v reaches ssh.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
(cherry picked from commit 7b7b33772880112c5118583c146493d57479996f)
This commit is contained in:
Daniel Hilst
2026-10-02 16:28:54 -03:00
parent fc8ff4df5a
commit b92ad5f93c
+3 -1
View File
@@ -128,9 +128,11 @@ end
start:xdsh_o
label:cn_os_ready,parallel_cmds
#OpenSSH 10 prints its version banner behind a "debug1:" prefix, so the banner is no longer
#the first text after the node name. Match the banner itself; the next check keeps the prefix.
cmd:xdsh $$CN -o "-v" date
check:rc==0
check:output=~$$CN: OpenSSH
check:output=~OpenSSH_[0-9]
check:output=~$$CN: debug
end