mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-11-19 22:33:07 +00:00
1c70356e93
all workstation based spins are failing due to packagekit causing gpg-agent spawning and keeping /dev/null open inside the compose environemnet. 36389 ? Ss 0:00 gpg-agent --homedir /tmp/tmp.XJ49JiQYpU/var/cache/PackageKit/26/metadata/updates-testing.tmp/gpgdir --use-standard-socket --daemon 36417 ? Ss 0:00 gpg-agent --homedir /tmp/tmp.XJ49JiQYpU/var/cache/PackageKit/26/metadata/updates.tmp/gpgdir --use-standard-socket --daemon we end up with process like above running. this only hit us as the urls pointed to stopped giving 404 errors Signed-off-by: Dennis Gilmore <dennis@ausil.us>
77 lines
2.3 KiB
Plaintext
77 lines
2.3 KiB
Plaintext
# Maintained by the Fedora Workstation WG:
|
|
# http://fedoraproject.org/wiki/Workstation
|
|
# mailto:desktop@lists.fedoraproject.org
|
|
|
|
%include fedora-live-base.ks
|
|
%include fedora-workstation-common.ks
|
|
#
|
|
# Disable this for now as packagekit is causing compose failures
|
|
# by leaving a gpg-agent around holding /dev/null open.
|
|
#
|
|
#include snippets/packagekit-cached-metadata.ks
|
|
|
|
part / --size 6656
|
|
|
|
%post
|
|
|
|
cat >> /etc/rc.d/init.d/livesys << EOF
|
|
|
|
|
|
# disable updates plugin
|
|
cat >> /usr/share/glib-2.0/schemas/org.gnome.software.gschema.override << FOE
|
|
[org.gnome.software]
|
|
download-updates=false
|
|
FOE
|
|
|
|
# don't run gnome-initial-setup
|
|
mkdir ~liveuser/.config
|
|
touch ~liveuser/.config/gnome-initial-setup-done
|
|
|
|
# make the installer show up
|
|
if [ -f /usr/share/applications/liveinst.desktop ]; then
|
|
# Show harddisk install in shell dash
|
|
sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop ""
|
|
# need to move it to anaconda.desktop to make shell happy
|
|
mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop
|
|
|
|
cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
|
|
[org.gnome.shell]
|
|
favorite-apps=['firefox.desktop', 'evolution.desktop', 'rhythmbox.desktop', 'shotwell.desktop', 'org.gnome.Nautilus.desktop', 'anaconda.desktop']
|
|
FOE
|
|
|
|
# Make the welcome screen show up
|
|
if [ -f /usr/share/anaconda/gnome/fedora-welcome.desktop ]; then
|
|
mkdir -p ~liveuser/.config/autostart
|
|
cp /usr/share/anaconda/gnome/fedora-welcome.desktop /usr/share/applications/
|
|
cp /usr/share/anaconda/gnome/fedora-welcome.desktop ~liveuser/.config/autostart/
|
|
fi
|
|
|
|
# Copy Anaconda branding in place
|
|
if [ -d /usr/share/lorax/product/usr/share/anaconda ]; then
|
|
cp -a /usr/share/lorax/product/* /
|
|
fi
|
|
fi
|
|
|
|
# rebuild schema cache with any overrides we installed
|
|
glib-compile-schemas /usr/share/glib-2.0/schemas
|
|
|
|
# set up auto-login
|
|
cat > /etc/gdm/custom.conf << FOE
|
|
[daemon]
|
|
AutomaticLoginEnable=True
|
|
AutomaticLogin=liveuser
|
|
FOE
|
|
|
|
# Turn off PackageKit-command-not-found while uninstalled
|
|
if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
|
|
sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
|
|
fi
|
|
|
|
# make sure to set the right permissions and selinux contexts
|
|
chown -R liveuser:liveuser /home/liveuser/
|
|
restorecon -R /home/liveuser/
|
|
|
|
EOF
|
|
|
|
%end
|