[OS-BUILD PATCH] Use new HOME path in ssh command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Don Zickus <dzickus@xxxxxxxxxx>

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@xxxxxxxxxx>

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
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux