mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-22 05:35:26 +00:00
split pk cached metadata hack into include'able snippet
and add to -kde-base
This commit is contained in:
parent
9fe671fe49
commit
6817b9661f
@ -19,6 +19,8 @@ cat > /root/.config/gtk-3.0/settings.ini << EOF
|
|||||||
gtk-theme-name = Adwaita
|
gtk-theme-name = Adwaita
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
%include fedora-packagekit-cached-metadata.ks
|
||||||
|
|
||||||
# add initscript
|
# add initscript
|
||||||
cat >> /etc/rc.d/init.d/livesys << EOF
|
cat >> /etc/rc.d/init.d/livesys << EOF
|
||||||
|
|
||||||
|
@ -12,35 +12,7 @@ part / --size 6144
|
|||||||
# This is a huge file and things work ok without it
|
# This is a huge file and things work ok without it
|
||||||
rm -f /usr/share/icons/HighContrast/icon-theme.cache
|
rm -f /usr/share/icons/HighContrast/icon-theme.cache
|
||||||
|
|
||||||
# Copy initial metadata for PackageKit
|
%include fedora-packagekit-cached-metadata.ks
|
||||||
PK_PREFIX=`mktemp -d`
|
|
||||||
mkdir -p $PK_PREFIX/etc/yum.repos.d
|
|
||||||
if [ -f /etc/yum.repos.d/fedora.repo ] ; then
|
|
||||||
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=https://kojipkgs.fedoraproject.org/mash/branched/$basearch/os/|' \
|
|
||||||
$PK_PREFIX/etc/yum.repos.d/fedora.repo
|
|
||||||
fi
|
|
||||||
if [ -f /etc/yum.repos.d/fedora-updates.repo ] ; then
|
|
||||||
cp /etc/yum.repos.d/fedora-updates.repo $PK_PREFIX/etc/yum.repos.d/
|
|
||||||
sed -i -e 's|^metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch|baseurl=https://kojipkgs.fedoraproject.org/mash/updates/f$releasever-updates/$basearch/|' \
|
|
||||||
$PK_PREFIX/etc/yum.repos.d/fedora-updates.repo
|
|
||||||
fi
|
|
||||||
if [ -f /etc/yum.repos.d/fedora-updates-testing.repo ] ; then
|
|
||||||
cp /etc/yum.repos.d/fedora-updates-testing.repo $PK_PREFIX/etc/yum.repos.d/
|
|
||||||
sed -i -e 's|^metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-f$releasever&arch=$basearch|baseurl=https://kojipkgs.fedoraproject.org/mash/updates/f$releasever-updates-testing/$basearch/|' \
|
|
||||||
$PK_PREFIX/etc/yum.repos.d/fedora-updates-testing.repo
|
|
||||||
fi
|
|
||||||
if [ -f /etc/yum.repos.d/fedora-rawhide.repo ] ; then
|
|
||||||
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=https://kojipkgs.fedoraproject.org/mash/rawhide/$basearch/os/|' \
|
|
||||||
$PK_PREFIX/etc/yum.repos.d/fedora-rawhide.repo
|
|
||||||
fi
|
|
||||||
rpm --root=$PK_PREFIX --initdb
|
|
||||||
DESTDIR=$PK_PREFIX /usr/libexec/packagekit-direct refresh
|
|
||||||
if [ -d /var/cache/PackageKit ] ; then
|
|
||||||
mv $PK_PREFIX/var/cache/PackageKit/* /var/cache/PackageKit/
|
|
||||||
fi
|
|
||||||
rm -rf $PK_PREFIX
|
|
||||||
|
|
||||||
cat >> /etc/rc.d/init.d/livesys << EOF
|
cat >> /etc/rc.d/init.d/livesys << EOF
|
||||||
|
|
||||||
|
30
fedora-packagekit-cached-metadata.ks
Normal file
30
fedora-packagekit-cached-metadata.ks
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Copy initial metadata for PackageKit
|
||||||
|
PK_PREFIX=`mktemp -d`
|
||||||
|
mkdir -p $PK_PREFIX/etc/yum.repos.d
|
||||||
|
if [ -f /etc/yum.repos.d/fedora.repo ] ; then
|
||||||
|
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=https://kojipkgs.fedoraproject.org/mash/branched/$basearch/os/|' \
|
||||||
|
$PK_PREFIX/etc/yum.repos.d/fedora.repo
|
||||||
|
fi
|
||||||
|
if [ -f /etc/yum.repos.d/fedora-updates.repo ] ; then
|
||||||
|
cp /etc/yum.repos.d/fedora-updates.repo $PK_PREFIX/etc/yum.repos.d/
|
||||||
|
sed -i -e 's|^metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch|baseurl=https://kojipkgs.fedoraproject.org/mash/updates/f$releasever-updates/$basearch/|' \
|
||||||
|
$PK_PREFIX/etc/yum.repos.d/fedora-updates.repo
|
||||||
|
fi
|
||||||
|
if [ -f /etc/yum.repos.d/fedora-updates-testing.repo ] ; then
|
||||||
|
cp /etc/yum.repos.d/fedora-updates-testing.repo $PK_PREFIX/etc/yum.repos.d/
|
||||||
|
sed -i -e 's|^metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-f$releasever&arch=$basearch|baseurl=https://kojipkgs.fedoraproject.org/mash/updates/f$releasever-updates-testing/$basearch/|' \
|
||||||
|
$PK_PREFIX/etc/yum.repos.d/fedora-updates-testing.repo
|
||||||
|
fi
|
||||||
|
if [ -f /etc/yum.repos.d/fedora-rawhide.repo ] ; then
|
||||||
|
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=https://kojipkgs.fedoraproject.org/mash/rawhide/$basearch/os/|' \
|
||||||
|
$PK_PREFIX/etc/yum.repos.d/fedora-rawhide.repo
|
||||||
|
fi
|
||||||
|
rpm --root=$PK_PREFIX --initdb
|
||||||
|
DESTDIR=$PK_PREFIX /usr/libexec/packagekit-direct refresh
|
||||||
|
if [ -d /var/cache/PackageKit ] ; then
|
||||||
|
mv $PK_PREFIX/var/cache/PackageKit/* /var/cache/PackageKit/
|
||||||
|
fi
|
||||||
|
rm -rf $PK_PREFIX
|
||||||
|
|
Loading…
Reference in New Issue
Block a user