2014-04-28 15:21:42 +00:00
|
|
|
# Maintained by the Fedora Workstation WG:
|
|
|
|
# http://fedoraproject.org/wiki/Workstation
|
|
|
|
# mailto:desktop@lists.fedoraproject.org
|
|
|
|
|
|
|
|
%include fedora-live-base.ks
|
2017-01-18 11:28:09 +00:00
|
|
|
%include fedora-workstation-common.ks
|
2017-03-09 23:11:34 +00:00
|
|
|
#
|
|
|
|
# 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
|
2014-04-28 15:21:42 +00:00
|
|
|
|
2019-07-29 17:40:37 +00:00
|
|
|
part / --size 7680
|
2014-04-28 15:21:42 +00:00
|
|
|
|
|
|
|
%post
|
2014-06-03 11:18:14 +00:00
|
|
|
|
2014-04-28 15:21:42 +00:00
|
|
|
cat >> /etc/rc.d/init.d/livesys << EOF
|
|
|
|
|
|
|
|
|
2018-03-26 09:13:21 +00:00
|
|
|
# disable gnome-software automatically downloading updates
|
2014-06-03 11:25:11 +00:00
|
|
|
cat >> /usr/share/glib-2.0/schemas/org.gnome.software.gschema.override << FOE
|
|
|
|
[org.gnome.software]
|
|
|
|
download-updates=false
|
2014-04-28 15:21:42 +00:00
|
|
|
FOE
|
|
|
|
|
2018-03-26 09:13:21 +00:00
|
|
|
# don't autostart gnome-software session service
|
|
|
|
rm -f /etc/xdg/autostart/gnome-software-service.desktop
|
|
|
|
|
|
|
|
# disable the gnome-software shell search provider
|
|
|
|
cat >> /usr/share/gnome-shell/search-providers/org.gnome.Software-search-provider.ini << FOE
|
|
|
|
DefaultDisabled=true
|
|
|
|
FOE
|
|
|
|
|
2014-04-28 15:21:42 +00:00
|
|
|
# don't run gnome-initial-setup
|
|
|
|
mkdir ~liveuser/.config
|
|
|
|
touch ~liveuser/.config/gnome-initial-setup-done
|
|
|
|
|
2018-01-25 23:57:43 +00:00
|
|
|
# suppress anaconda spokes redundant with gnome-initial-setup
|
|
|
|
cat >> /etc/sysconfig/anaconda << FOE
|
|
|
|
[NetworkSpoke]
|
|
|
|
visited=1
|
|
|
|
|
|
|
|
[PasswordSpoke]
|
|
|
|
visited=1
|
|
|
|
|
|
|
|
[UserSpoke]
|
|
|
|
visited=1
|
|
|
|
FOE
|
|
|
|
|
2014-04-28 15:21:42 +00:00
|
|
|
# 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]
|
2020-02-11 15:42:38 +00:00
|
|
|
favorite-apps=['firefox.desktop', 'org.gnome.Calendar.desktop', 'rhythmbox.desktop', 'org.gnome.Photos.desktop', 'org.gnome.Nautilus.desktop', 'anaconda.desktop']
|
2014-04-28 15:21:42 +00:00
|
|
|
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
|
2014-11-17 21:05:56 +00:00
|
|
|
|
|
|
|
# Copy Anaconda branding in place
|
|
|
|
if [ -d /usr/share/lorax/product/usr/share/anaconda ]; then
|
|
|
|
cp -a /usr/share/lorax/product/* /
|
|
|
|
fi
|
2014-04-28 15:21:42 +00:00
|
|
|
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
|