Use --old-chroot when building RPM packages

New mock by default uses systemd-based chroot for all
run modes (init/build/etc).

Change-Id: I224d120acfd4410024106b0037fe9ceeff87fe1c
This commit is contained in:
Alexander Evseev 2017-06-21 15:55:10 +03:00
parent cbab819bae
commit 30d57ca63a
1 changed files with 3 additions and 3 deletions

View File

@ -33,15 +33,15 @@ docker run ${DNSPARAM} --privileged --rm -v ${CACHEPATH}:/srv/mock:ro \
$EXTRACMD
echo 'Current config file:'
cat /etc/mock/centos-${DIST_VERSION}-x86_64.cfg
su - abuild -c 'mock -r centos-${DIST_VERSION}-x86_64 --verbose --update'
su - abuild -c 'mock -r centos-${DIST_VERSION}-x86_64 --verbose --update --old-chroot'
chown -R abuild.mock /home/abuild
[[ \$(ls /home/abuild/rpmbuild/*.src.rpm | wc -l) -eq 0 ]] \
&& su - abuild -c 'mock -r centos-${DIST_VERSION}-x86_64 --no-clean --no-cleanup-after --buildsrpm --verbose \
--sources=/home/abuild/rpmbuild --resultdir=/home/abuild/rpmbuild --buildsrpm \
--spec=\$(ls /home/abuild/rpmbuild/*.spec)'
--spec=\$(ls /home/abuild/rpmbuild/*.spec) --old-chroot'
rm -rf /home/abuild/rpmbuild/build
su - abuild -c 'mock -r centos-${DIST_VERSION}-x86_64 --no-clean --no-cleanup-after --verbose \
--resultdir=/home/abuild/rpmbuild/build \$(ls /home/abuild/rpmbuild/*.src.rpm)'
--resultdir=/home/abuild/rpmbuild/build \$(ls /home/abuild/rpmbuild/*.src.rpm) --old-chroot'
echo \$? > /home/abuild/rpmbuild/build/exitstatus.mock
umount -f /var/cache/mock /srv/tmpfs/cache
rm -rf /srv/tmpfs