From 4e1337a1ef541ef1060b3042ce3bcf0058ed45b8 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 12 Jul 2019 14:58:29 +0200 Subject: [PATCH] build-devmock: Fix ssh ssh looks at passwd's home directory, not $HOME --- build-devmock | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build-devmock b/build-devmock index 2e50451..fabee7a 100755 --- a/build-devmock +++ b/build-devmock @@ -28,3 +28,7 @@ EOF # make mock compatible with ostree's /home → /var/home structure mock -r ${OS:-default} --chroot -- ln -sf /home /var/home + +# ssh looks at passwd, not $HOME +mock -r ${OS:-default} --chroot --unpriv -- rm -rf /builddir/.ssh +mock -r ${OS:-default} --chroot --unpriv -- ln -s /home/martin/.ssh /builddir/.ssh -- 2.39.5