fedora-kickstarts

This is the project repository for holding the ​kickstart files for Fedora composes

Blame fedora-live-mate_compiz.ks

e19a5f9
# Desktop with customizations to fit in a CD (package removals, etc.)
Dan Mashal 6c3cb0a
# Maintained by the Fedora Desktop SIG:
Dan Mashal 6c3cb0a
# http://fedoraproject.org/wiki/SIGs/Desktop
Dan Mashal 6c3cb0a
# mailto:desktop@lists.fedoraproject.org
Dan Mashal 6c3cb0a
Dan Mashal 6c3cb0a
%include fedora-live-base.ks
d533c7a
%include fedora-mate-common.ks
e19a5f9
%include fedora-live-minimization.ks
Dan Mashal 6c3cb0a
e19a5f9
part / --size 6144
e19a5f9
Dan Mashal 6c3cb0a
%post
Dan Mashal 6c3cb0a
cat >> /etc/rc.d/init.d/livesys << EOF
Dan Mashal 6c3cb0a
Dan Mashal 6c3cb0a
Dan Mashal 6c3cb0a
# make the installer show up
Dan Mashal 6c3cb0a
if [ -f /usr/share/applications/liveinst.desktop ]; then
Dan Mashal 6c3cb0a
  # Show harddisk install in shell dash
Dan Mashal 6c3cb0a
  sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop ""
aecc325
fi
Dan Mashal 6c3cb0a
mkdir /home/liveuser/Desktop
Dan Mashal 6c3cb0a
cp /usr/share/applications/liveinst.desktop /home/liveuser/Desktop
Dan Mashal 6c3cb0a
raveit65 a96164b
# and mark it as executable
raveit65 a96164b
chmod +x /home/liveuser/Desktop/liveinst.desktop
raveit65 a96164b
Dan Mashal 6c3cb0a
# rebuild schema cache with any overrides we installed
Dan Mashal 6c3cb0a
glib-compile-schemas /usr/share/glib-2.0/schemas
Dan Mashal 6c3cb0a
aecc325
# set up lightdm autologin
aecc325
sed -i 's/^#autologin-user=.*/autologin-user=liveuser/' /etc/lightdm/lightdm.conf
aecc325
sed -i 's/^#autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/lightdm.conf
aecc325
#sed -i 's/^#show-language-selector=.*/show-language-selector=true/' /etc/lightdm/lightdm-gtk-greeter.conf
aecc325
aecc325
# set MATE as default session, otherwise login will fail
aecc325
sed -i 's/^#user-session=.*/user-session=mate/' /etc/lightdm/lightdm.conf
Dan Mashal 6c3cb0a
Dan Mashal 6c3cb0a
# Turn off PackageKit-command-not-found while uninstalled
Dan Mashal 6c3cb0a
if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
Dan Mashal 6c3cb0a
  sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
Dan Mashal 6c3cb0a
fi
Dan Mashal 6c3cb0a
raveit65 ed939f3
# no updater applet in live environment
raveit65 ed939f3
rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop
raveit65 ed939f3
aecc325
# make sure to set the right permissions and selinux contexts
aecc325
chown -R liveuser:liveuser /home/liveuser/
aecc325
restorecon -R /home/liveuser/
Dan Mashal 6c3cb0a
EOF
Dan Mashal 6c3cb0a
Dan Mashal 6c3cb0a
%end