diff --git a/fedorize_image b/fedorize_image index 27b2eef..dfb7598 100755 --- a/fedorize_image +++ b/fedorize_image @@ -50,7 +50,7 @@ fi mount -t proc proc mnt/proc PKGGROUPS=$(cat $PKGLISTFILE) echo "-> Installing package groups..." -yum install $YUM_OPTS -y --installroot=$INSTALLDIR $PKGGROUPS || RETCODE=1 +yum install -c $PWD/yum.conf $YUM_OPTS -y --installroot=$INSTALLDIR $PKGGROUPS || RETCODE=1 umount mnt/proc mnt diff --git a/yum.conf b/yum.conf new file mode 100644 index 0000000..d1f8356 --- /dev/null +++ b/yum.conf @@ -0,0 +1,21 @@ +[main] +cachedir=/var/cache/yum/$basearch/$releasever +keepcache=0 +debuglevel=2 +logfile=/var/log/yum.log +exactarch=1 +obsoletes=1 +gpgcheck=1 +plugins=1 +installonly_limit=3 +color=never + +# This is the default, if you make this bigger yum won't see if the metadata +# is newer on the remote and so you'll "gain" the bandwidth of not having to +# download the new metadata and "pay" for it by yum not having correct +# information. +# It is esp. important, to have correct metadata, for distributions like +# Fedora which don't keep old packages around. If you don't like this checking +# interupting your command line usage, it's much better to have something +# manually check the metadata once an hour (yum-updatesd will do this). +# metadata_expire=90m