From d33c828f0201fdc4ec617fadd1f5efacff466838 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 17 Jul 2019 13:37:14 +0200 Subject: [PATCH] build-devmock: Set up rhpkg --- build-devmock | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/build-devmock b/build-devmock index fabee7a..60f5127 100755 --- a/build-devmock +++ b/build-devmock @@ -27,8 +27,14 @@ fi EOF # make mock compatible with ostree's /home → /var/home structure -mock -r ${OS:-default} --chroot -- ln -sf /home /var/home +$MOCK --chroot -- ln -sf /home /var/home + +# install rhpkg +$MOCK -i ~martin/Dokumente/Arbeit/RedHat/redhat-internal-cert-install-0.1-7.el7.csb.noarch.rpm +$MOCK --chroot --cwd=/etc/yum.repos.d -- 'echo >> /etc/dnf/dnf.conf; curl --location https://download.devel.redhat.com/rel-eng/RCMTOOLS/rcm-tools-fedora.repo >> /etc/dnf/dnf.conf' +$MOCK -i rhpkg # 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 +$MOCK --chroot --unpriv -- rm -rf /builddir/.ssh +$MOCK --chroot --unpriv -- ln -s /home/martin/.ssh /builddir/.ssh +$MOCK --chroot --unpriv -- ln -s /home/martin/upstream /builddir/upstream -- 2.39.5