mirror of
https://pagure.io/fedora-kickstarts.git
synced 2025-12-06 11:39:40 +08:00
Switch all live media variants to use livesys-scripts
Reference: https://fedoraproject.org/wiki/Changes/ModernizeLiveMedia
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
%include fedora-i3-common.ks
|
||||
|
||||
%post
|
||||
# xfce configuration
|
||||
# i3 configuration
|
||||
|
||||
# create /etc/sysconfig/desktop (needed for installation)
|
||||
|
||||
@@ -23,37 +23,8 @@ PREFERRED=/usr/bin/i3
|
||||
DISPLAYMANAGER=/usr/sbin/lightdm
|
||||
EOF
|
||||
|
||||
cat >> /etc/rc.d/init.d/livesys << EOF
|
||||
|
||||
# deactivate xfconf-migration (#683161)
|
||||
rm -f /etc/xdg/autostart/xfconf-migration-4.6.desktop || :
|
||||
|
||||
# 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 i3 as default session, otherwise login will fail
|
||||
sed -i 's/^#user-session=.*/user-session=i3/' /etc/lightdm/lightdm.conf
|
||||
|
||||
# Show harddisk install on the desktop
|
||||
sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop
|
||||
mkdir /home/liveuser/Desktop
|
||||
|
||||
# this goes at the end after all other changes.
|
||||
chown -R liveuser:liveuser /home/liveuser
|
||||
restorecon -R /home/liveuser
|
||||
|
||||
# setting the wallpaper
|
||||
echo "/usr/bin/feh --bg-scale /usr/share/backgrounds/default.png" >> /home/liveuser/.profile
|
||||
|
||||
# echoing type liveinst to start the installer
|
||||
echo "echo 'Please type liveinst and press Enter to start the installer'" >> /home/liveuser/.bashrc
|
||||
|
||||
# fixing the installer non opening bug
|
||||
echo "xhost si:localuser:root" >> /home/liveuser/.profile
|
||||
|
||||
EOF
|
||||
# set livesys session type
|
||||
sed -i 's/^livesys_session=.*/livesys_session="i3"/' /etc/sysconfig/livesys
|
||||
|
||||
%end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user