Commit 42d2757
committed
guestfs: enhance ssh config choice
The ssh configuration file we use when we set up guests with guestfs
is is simply ~/.ssh/config_kdevops_$KDEVOPS_HOSTS_PREFIX. This has
scaled for a while but now that we have CI support each self-hosted
will want to use the relevant git commit ID upstream from the upstream
repo as the prefix, when that is used then technically we can't test
the same test for different subsystems. Additionally even we can't
run kdevops on the same host with the default prefix on the same distro
more than once without creating an overwrite of the file. For example
debian13 systems will use .ssh/config_kdevops_debian13 for both XFS
and even if NFS tests.
Enhance support to scale by having a unique prefix for the ssh
configuration. We choose the current working directory for kdevops
as the unique pivot for what we'll use, so we can just compute the
sha256sum of the current working directory.
To remain backward compatible add TOPDIR_PATH_HAS_SHA256SUM which
default to y, so that in older setups if folks git pull, things will
still work with the old prefix.
Signed-off-by: Luis Chamberlain <[email protected]>1 parent 4f967e0 commit 42d2757
File tree
3 files changed
+19
-2
lines changed- scripts
3 files changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
13 | 23 | | |
14 | 24 | | |
15 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
0 commit comments