forked from srbala/fedora-kickstarts
aebb5de8e9
Inject install code in lorax template live/x86.tmpl for livemedia- creator builds. Also, remove wrong path for dracut; give glib-compile-schemas the schemas directory; update maintainers.
49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
# fedora-livecd-soas.ks
|
|
#
|
|
# Description:
|
|
# - A Sugar environment that you can carry in your pocket
|
|
#
|
|
# Maintainers:
|
|
# - Peter Robinson <pbrobinson AT gmail DOT com>
|
|
|
|
%include fedora-live-base.ks
|
|
%include fedora-live-minimization.ks
|
|
%include fedora-soas-common.ks
|
|
|
|
%post
|
|
|
|
cat >> /etc/rc.d/init.d/livesys << EOF
|
|
# set up lightdm autologin
|
|
sed -i 's/^#autologin-user=.*/autologin-user=liveuser/' /etc/lightdm/lightdm.conf
|
|
sed -i 's/^#autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/lightdm.conf
|
|
#sed -i 's/^#show-language-selector=.*/show-language-selector=true/' /etc/lightdm/lightdm-gtk-greeter.conf
|
|
|
|
# set Sugar as default session, otherwise login will fail
|
|
sed -i 's/^#user-session=.*/user-session=sugar/' /etc/lightdm/lightdm.conf
|
|
EOF
|
|
|
|
cat >> /etc/rc.d/init.d/livesys-late << EOF
|
|
|
|
# disable screensaver locking
|
|
cat >> /usr/share/glib-2.0/schemas/org.gnome.desktop.screensaver.gschema.override << FOE
|
|
[org.gnome.desktop.screensaver]
|
|
lock-enabled=false
|
|
FOE
|
|
|
|
# and hide the lock screen option
|
|
cat >> /usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.override << FOE
|
|
[org.gnome.desktop.lockdown]
|
|
disable-lock-screen=true
|
|
FOE
|
|
|
|
# rebuild schema cache with any overrides we installed
|
|
glib-compile-schemas /usr/share/glib-2.0/schemas
|
|
|
|
EOF
|
|
|
|
chmod 755 /etc/rc.d/init.d/livesys-late
|
|
/sbin/restorecon /etc/rc.d/init.d/livesys-late
|
|
/sbin/chkconfig --add livesys-late
|
|
|
|
%end
|