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
|
|
|
|
yum clean all -c $PWD/yum.conf $YUM_OPTS -y --installroot=$PWD/mnt
|
|
|
|
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
|
|
|
|
|
|
|
|
umount mnt/proc mnt
|