[elbe-devel] [PATCH 2/2] elbepack: initvmaction: don't store host keys for devel sync
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Mon Apr 29 11:21:37 CEST 2024
The initvm, especially in devel mode, gets regenerated frequently.
It does not make sense to validate its host keys.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/initvmaction.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index a1b0cc105682..ad146e1fd9a9 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -860,7 +860,7 @@ class SyncAction(InitVMAction):
subprocess.run([
'rsync', '--info=name1,stats1', '--archive', '--times',
*[arg for e in excludes for arg in ('--exclude', e)],
- f'--rsh=ssh -p {cfg["sshport"]}',
+ f'--rsh=ssh -p {cfg["sshport"]} -oUserKnownHostsFile=/dev/null',
'--chown=root:root',
f'{top_dir}/',
'root at localhost:/var/cache/elbe/devel'
--
2.44.0
More information about the elbe-devel
mailing list