build-devmock: Fix ssh
authorMartin Pitt <martin@piware.de>
Fri, 12 Jul 2019 12:58:29 +0000 (14:58 +0200)
committerMartin Pitt <martin@piware.de>
Fri, 12 Jul 2019 12:58:29 +0000 (14:58 +0200)
ssh looks at passwd's home directory, not $HOME

build-devmock

index 2e50451f1b595ac9203c1c5af1da81e9feecc5b1..fabee7a2ea82b614e55e1a45b9187d3fddf5bd93 100755 (executable)
@@ -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