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
534a8f0
%include fedora-mate-packages.ks
Dan Mashal 6c3cb0a
raveit65 9308b5d
part / --size 6144 
Dan Mashal 6c3cb0a
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
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
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