qubes-linux-template-builder/scripts_fedora/02_install_groups.sh

20 lines
569 B
Bash
Raw Normal View History

#!/bin/sh
echo "--> Preparing environment..."
mount -t proc proc mnt/proc
if [ -r "$SCRIPTSDIR/packages_${DIST}.list" ]; then
PKGLISTFILE="$SCRIPTSDIR/packages_${DIST}.list"
else
PKGLISTFILE="$SCRIPTSDIR/packages.list"
fi
export PKGGROUPS=$(cat $PKGLISTFILE)
export YUM0=$PWD/yum_repo_qubes
2014-05-13 02:30:01 +00:00
yum clean all -c $PWD/yum.conf $YUM_OPTS -y --installroot=$INSTALLDIR
yum install -c $PWD/yum.conf $YUM_OPTS -y --installroot=$INSTALLDIR $PKGGROUPS || RETCODE=1
yum update -c $PWD/yum.conf $YUM_OPTS -y --installroot=$INSTALLDIR || RETCODE=1
2013-02-16 21:48:39 +00:00
umount mnt/proc
exit $RETCODE