54415d9
# Maintained by the Fedora Workstation WG:
54415d9
# http://fedoraproject.org/wiki/Workstation
54415d9
# mailto:desktop@lists.fedoraproject.org
54415d9
54415d9
%include fedora-live-base.ks
d533c7a
%include fedora-workstation-common.ks
660c0f2
#
660c0f2
# Disable this for now as packagekit is causing compose failures
660c0f2
# by leaving a gpg-agent around holding /dev/null open.
660c0f2
#
660c0f2
#include snippets/packagekit-cached-metadata.ks
54415d9
d9ee921
part / --size 7680
54415d9
54415d9
%post
c42ccad
54415d9
cat >> /etc/rc.d/init.d/livesys << EOF
54415d9
54415d9
c236c5f
# disable gnome-software automatically downloading updates
f844fe2
cat >> /usr/share/glib-2.0/schemas/org.gnome.software.gschema.override << FOE
f844fe2
[org.gnome.software]
f844fe2
download-updates=false
54415d9
FOE
54415d9
c236c5f
# don't autostart gnome-software session service
c236c5f
rm -f /etc/xdg/autostart/gnome-software-service.desktop
c236c5f
c236c5f
# disable the gnome-software shell search provider
c236c5f
cat >> /usr/share/gnome-shell/search-providers/org.gnome.Software-search-provider.ini << FOE
c236c5f
DefaultDisabled=true
c236c5f
FOE
c236c5f
54415d9
# don't run gnome-initial-setup
54415d9
mkdir ~liveuser/.config
54415d9
touch ~liveuser/.config/gnome-initial-setup-done
54415d9
Michael Catanzaro cf3866c
# suppress anaconda spokes redundant with gnome-initial-setup
Michael Catanzaro cf3866c
cat >> /etc/sysconfig/anaconda << FOE
Michael Catanzaro cf3866c
[NetworkSpoke]
Michael Catanzaro cf3866c
visited=1
Michael Catanzaro cf3866c
Michael Catanzaro cf3866c
[PasswordSpoke]
Michael Catanzaro cf3866c
visited=1
Michael Catanzaro cf3866c
Michael Catanzaro cf3866c
[UserSpoke]
Michael Catanzaro cf3866c
visited=1
Michael Catanzaro cf3866c
FOE
Michael Catanzaro cf3866c
54415d9
# make the installer show up
54415d9
if [ -f /usr/share/applications/liveinst.desktop ]; then
54415d9
  # Show harddisk install in shell dash
54415d9
  sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop ""
54415d9
  # need to move it to anaconda.desktop to make shell happy
54415d9
  mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop
54415d9
54415d9
  cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
54415d9
[org.gnome.shell]
28e8bdd
favorite-apps=['firefox.desktop', 'org.gnome.Calendar.desktop', 'rhythmbox.desktop', 'org.gnome.Photos.desktop', 'org.gnome.Nautilus.desktop', 'anaconda.desktop']
54415d9
FOE
54415d9
54415d9
  # Make the welcome screen show up
54415d9
  if [ -f /usr/share/anaconda/gnome/fedora-welcome.desktop ]; then
54415d9
    mkdir -p ~liveuser/.config/autostart
54415d9
    cp /usr/share/anaconda/gnome/fedora-welcome.desktop /usr/share/applications/
54415d9
    cp /usr/share/anaconda/gnome/fedora-welcome.desktop ~liveuser/.config/autostart/
54415d9
  fi
004915b
004915b
  # Copy Anaconda branding in place
004915b
  if [ -d /usr/share/lorax/product/usr/share/anaconda ]; then
004915b
    cp -a /usr/share/lorax/product/* /
004915b
  fi
54415d9
fi
54415d9
54415d9
# rebuild schema cache with any overrides we installed
54415d9
glib-compile-schemas /usr/share/glib-2.0/schemas
54415d9
54415d9
# set up auto-login
54415d9
cat > /etc/gdm/custom.conf << FOE
54415d9
[daemon]
54415d9
AutomaticLoginEnable=True
54415d9
AutomaticLogin=liveuser
54415d9
FOE
54415d9
54415d9
# Turn off PackageKit-command-not-found while uninstalled
54415d9
if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
54415d9
  sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
54415d9
fi
54415d9
54415d9
# make sure to set the right permissions and selinux contexts
54415d9
chown -R liveuser:liveuser /home/liveuser/
54415d9
restorecon -R /home/liveuser/
54415d9
54415d9
EOF
54415d9
54415d9
%end