2013-01-25 08:06:20 +00:00
|
|
|
#!/bin/sh
|
|
|
|
echo "--> Preparing environment..."
|
|
|
|
mount -t proc proc mnt/proc
|
|
|
|
|
2013-02-16 15:00:50 +00:00
|
|
|
if [ -r "$SCRIPTSDIR/packages_${DIST}.list" ]; then
|
|
|
|
PKGLISTFILE="$SCRIPTSDIR/packages_${DIST}.list"
|
|
|
|
else
|
|
|
|
PKGLISTFILE="$SCRIPTSDIR/packages.list"
|
|
|
|
fi
|
|
|
|
export PKGGROUPS=$(cat $PKGLISTFILE)
|
|
|
|
|
2013-01-25 08:06:20 +00:00
|
|
|
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
|
2013-01-25 08:06:20 +00:00
|
|
|
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
|
2013-12-13 03:29:29 +00:00
|
|
|
|
|
|
|
exit $RETCODE
|