Use YUM_OPTS var

Sometimes is useful to add custom args to yum without modifing script.
I.e. --setopt=miltilib_policy=best or --enablerepo=
This commit is contained in:
Marek Marczykowski 2011-09-26 01:19:54 +02:00
parent 1936be2cc3
commit 640b86b0b2

View File

@ -50,7 +50,7 @@ fi
mount -t proc proc mnt/proc mount -t proc proc mnt/proc
PKGGROUPS=$(cat $PKGLISTFILE) PKGGROUPS=$(cat $PKGLISTFILE)
echo "-> Installing package groups..." echo "-> Installing package groups..."
yum install -y --installroot=$INSTALLDIR $PKGGROUPS || RETCODE=1 yum install $YUM_OPTS -y --installroot=$INSTALLDIR $PKGGROUPS || RETCODE=1
umount mnt/proc mnt umount mnt/proc mnt