[pve-devel] [PATCH cluster] pvecm: fix cluster join over ssh with newer rsync

Dominik Csapak d.csapak at proxmox.com
Fri Jun 2 15:20:23 CEST 2023


since rsync 3.2.4, the syntax to give multiple files in one parameter
does not work anymore, so instead add both files explicitly

this fixes the cluster join over ssh on bookworm

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/PVE/CLI/pvecm.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/CLI/pvecm.pm b/src/PVE/CLI/pvecm.pm
index b0b5931..d816a0c 100755
--- a/src/PVE/CLI/pvecm.pm
+++ b/src/PVE/CLI/pvecm.pm
@@ -438,7 +438,7 @@ __PACKAGE__->register_method ({
 	    eval {
 		print "copy corosync auth key\n";
 		$cmd = ['rsync', '--rsh=ssh -l root -o BatchMode=yes', '-lpgoq',
-			"[$host]:$authfile $clusterconf", $tmpdir];
+			"[$host]:$authfile", "[$host]:$clusterconf", $tmpdir];
 
 		system(@$cmd) == 0 || die "can't rsync data from host '$host'\n";
 
-- 
2.30.2






More information about the pve-devel mailing list