mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-22 05:35:26 +00:00
249374e72b
live-minimization is kinda old, and dates from the time we were trying to fit in CD size. No-one cares much about that any more. One of these exclusions (sane-backends) was contradictory for Cinnamon lives and broke the compose since the recent dnf change to fail compose on dependency issues (because the cinnamon comps group explicitly includes sane-backends-drivers-scanners, but this exclusion excludes one of its deps). To resolve that, @grinnz is fine with just dropping the use of live-minimization from the cinnamon images entirely, so this does that. Signed-off-by: Adam Williamson <awilliam@redhat.com>
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
# fedora-live-cinnamon.ks
|
|
#
|
|
# Description:
|
|
# - Fedora Live Spin with the Cinnamon Desktop Environment
|
|
#
|
|
# Maintainer(s):
|
|
# - Dan Book <grinnz@grinnz.com>
|
|
|
|
%include fedora-live-base.ks
|
|
%include fedora-cinnamon-common.ks
|
|
|
|
part / --size=6144
|
|
|
|
%post
|
|
# cinnamon configuration
|
|
|
|
# create /etc/sysconfig/desktop (needed for installation)
|
|
|
|
cat > /etc/sysconfig/desktop <<EOF
|
|
PREFERRED=/usr/bin/cinnamon-session
|
|
DISPLAYMANAGER=/usr/sbin/lightdm
|
|
EOF
|
|
|
|
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 Cinnamon as default session, otherwise login will fail
|
|
sed -i 's/^#user-session=.*/user-session=cinnamon/' /etc/lightdm/lightdm.conf
|
|
|
|
# no updater applet in live environment
|
|
rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop
|
|
|
|
# Show harddisk install on the desktop
|
|
sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop
|
|
mkdir /home/liveuser/Desktop
|
|
cp /usr/share/applications/liveinst.desktop /home/liveuser/Desktop
|
|
|
|
# and mark it as executable
|
|
chmod +x /home/liveuser/Desktop/liveinst.desktop
|
|
|
|
# this goes at the end after all other changes.
|
|
chown -R liveuser:liveuser /home/liveuser
|
|
restorecon -R /home/liveuser
|
|
|
|
EOF
|
|
|
|
%end
|
|
|
|
|