From 49a2fb93cc7bbbac5b654079dc4f5e92c727c7e1 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Wed, 20 Aug 2008 14:39:55 -0400 Subject: More fixes from testing rawhide production. Make sure we run mash as the user calling mock, which in our case is masher, which has write access to /mnt/koji Copy in the host hosts file so that we correctly resolve koji.fedoraproject.org --- scripts/buildrawhide | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/buildrawhide b/scripts/buildrawhide index f341cef..2f65c02 100755 --- a/scripts/buildrawhide +++ b/scripts/buildrawhide @@ -29,7 +29,10 @@ popd mock -r $MOCKCONFIG --init mock -r $MOCKCONFIG --no-clean --install koji yum createrepo cvs make intltool findutils mash yum-utils rsync repoview -mock -r $MOCKCONFIG --chroot "mash -o /mnt/koji/mash/rawhide-$DATE --compsfile /mnt/koji/mash/rawhide-$DATE/logs/comps-rawhide.xml development > /mnt/koji/mash/rawhide-$DATE/logs/mash.log 2>&1" || exit 1 +# Copy in the hosts file so that we get the right address for koji +mock -r $MOCKCONFIG --copyin /etc/hosts /etc/hosts >/dev/null 2>&1 # this reports to fail, but actually works +# Drop privs here so that we run as the masher UID +mock -r $MOCKCONFIG --unpriv --chroot "mash -o /mnt/koji/mash/rawhide-$DATE --compsfile /mnt/koji/mash/rawhide-$DATE/logs/comps-rawhide.xml development > /mnt/koji/mash/rawhide-$DATE/logs/mash.log 2>&1" || exit 1 if [ -n "\$OLD" ] then -- cgit