Move packagekit-cached-metadata.ks to snippets/
... and make it a top-level script wrapped in %post ... %end.
This commit is contained in:
parent
f5eb0bee5f
commit
469ad561b9
@ -4,6 +4,7 @@
|
||||
|
||||
%include fedora-live-base.ks
|
||||
%include fedora-kde-packages.ks
|
||||
%include snippets/packagekit-cached-metadata.ks
|
||||
|
||||
%post
|
||||
|
||||
@ -19,8 +20,6 @@ cat > /root/.config/gtk-3.0/settings.ini << EOF
|
||||
gtk-theme-name = Adwaita
|
||||
EOF
|
||||
|
||||
%include fedora-packagekit-cached-metadata.ks
|
||||
|
||||
# add initscript
|
||||
cat >> /etc/rc.d/init.d/livesys << EOF
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
%include fedora-live-base.ks
|
||||
%include fedora-workstation-packages.ks
|
||||
%include snippets/packagekit-cached-metadata.ks
|
||||
|
||||
part / --size 6144
|
||||
|
||||
@ -12,8 +13,6 @@ part / --size 6144
|
||||
# This is a huge file and things work ok without it
|
||||
rm -f /usr/share/icons/HighContrast/icon-theme.cache
|
||||
|
||||
%include fedora-packagekit-cached-metadata.ks
|
||||
|
||||
cat >> /etc/rc.d/init.d/livesys << EOF
|
||||
|
||||
|
||||
|
@ -1,4 +1,7 @@
|
||||
# Copy initial metadata for PackageKit
|
||||
# %post script to include initial metadata for PackageKit
|
||||
|
||||
%post
|
||||
|
||||
PK_PREFIX=`mktemp -d`
|
||||
mkdir -p $PK_PREFIX/etc/yum.repos.d
|
||||
if [ -f /etc/yum.repos.d/fedora.repo ] ; then
|
||||
@ -28,3 +31,4 @@ if [ -d /var/cache/PackageKit ] ; then
|
||||
fi
|
||||
rm -rf $PK_PREFIX
|
||||
|
||||
%end
|
Loading…
Reference in New Issue
Block a user