$MOCK --clean
-# install cockpit's build deps
+# install cockpit's build deps and other development tools
$MOCK -i $(sed -n '/^BuildRequires:/ {s/^.*: //; s/>=.*$//; s/%{.*}//; p}' ~/upstream/cockpit/tools/cockpit.spec) \
npm fontconfig git valgrind chromium-headless \
libvirt-daemon-kvm libvirt-client python3-libvirt \
fedpkg /usr/bin/oc /usr/bin/genisoimage \
man-pages socat wget genisoimage vim-enhanced
+# interactive shell sessions work as user martin, not builder
$MOCK --unpriv --copyin /dev/stdin /builddir/.bashrc <<EOF
export HOME=/home/martin
export TERM=xterm
fi
. ~/.bashrc
EOF
+
+# make mock compatible with ostree's /home → /var/home structure
+mock -r ${OS:-default} --chroot -- ln -sf /home /var/home