From: Don Zickus dzickus@redhat.com
Use new HOME path in ssh command
CKI recently updated the HOME variable to point to /cki instead of /root. The .gitlab-ci.yml file applies all ssh tweaks to ~/.ssh/ which is /cki/.ssh. However, ssh still uses /root/.ssh. So all the tweaks are ignored and ssh connections to gitlab fail.
Fix this by telling git to use a different location with GIT_SSH_COMMAND=ssh -o UserKnownHostsFile=$HOME/.ssh/known_hosts.
Tested locally with the cki container.
Signed-off-by: Don Zickus dzickus@redhat.com
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index blahblah..blahblah 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -207,6 +207,8 @@ rhel9_realtime_baseline: - gpg2 --import "$TORVALDS_GPG_KEY" - git checkout --track origin/master && git describe - export PROJECT_ID="$CI_PROJECT_ID" + # CKI changed HOME to /cki which ssh does not pickup + - export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=$HOME/.ssh/known_hosts"
merge_upstream: extends: .scheduled_setup
-- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1887
From: Iñaki Malerba on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1887#note_1002213...
This should be done The Right Way ™ in cki-project/containers!412 instead :slight_smile:
:thumbsdown: unless it's necessary to workaround it before !412 is merged
From: Don Zickus on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1887#note_1002826...
with containers!412 merged, this MR is unnecessary. Closing.
kernel@lists.fedoraproject.org