You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/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
|
|
|
|
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
|
|
|
|
|
|
|
|
exit $RETCODE
|