Merge branch 'master' of ssh://git.fedorahosted.org/git/spin-kickstarts

This commit is contained in:
Luya Tshimbalanga 2016-05-03 10:20:56 -07:00
commit 78d2cb9dbe

View File

@ -19,7 +19,7 @@ PK_PREFIX=`mktemp -d`
mkdir -p $PK_PREFIX/etc/yum.repos.d mkdir -p $PK_PREFIX/etc/yum.repos.d
if [ -f /etc/yum.repos.d/fedora.repo ] ; then if [ -f /etc/yum.repos.d/fedora.repo ] ; then
cp /etc/yum.repos.d/fedora.repo $PK_PREFIX/etc/yum.repos.d/ cp /etc/yum.repos.d/fedora.repo $PK_PREFIX/etc/yum.repos.d/
sed -i -e 's|^metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch|baseurl=http://kojipkgs.fedoraproject.org/mash/branched/$basearch/os/|' \ sed -i -e 's|^metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch|baseurl=http://kojipkgs.fedoraproject.org/compose/branched/latest-Fedora-/compose/Everything/$basearch/os/|' \
$PK_PREFIX/etc/yum.repos.d/fedora.repo $PK_PREFIX/etc/yum.repos.d/fedora.repo
fi fi
if [ -f /etc/yum.repos.d/fedora-updates.repo ] ; then if [ -f /etc/yum.repos.d/fedora-updates.repo ] ; then
@ -34,7 +34,7 @@ if [ -f /etc/yum.repos.d/fedora-updates-testing.repo ] ; then
fi fi
if [ -f /etc/yum.repos.d/fedora-rawhide.repo ] ; then if [ -f /etc/yum.repos.d/fedora-rawhide.repo ] ; then
cp /etc/yum.repos.d/fedora-rawhide.repo $PK_PREFIX/etc/yum.repos.d/ cp /etc/yum.repos.d/fedora-rawhide.repo $PK_PREFIX/etc/yum.repos.d/
sed -i -e 's|^metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=$basearch|baseurl=http://kojipkgs.fedoraproject.org/mash/rawhide/$basearch/os/|' \ sed -i -e 's|^metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=$basearch|baseurl=http://kojipkgs.fedoraproject.org/compose/rawhide/latest-Fedora-/compose/Everything/$basearch/os/|' \
$PK_PREFIX/etc/yum.repos.d/fedora-rawhide.repo $PK_PREFIX/etc/yum.repos.d/fedora-rawhide.repo
fi fi
rpm --root=$PK_PREFIX --initdb rpm --root=$PK_PREFIX --initdb