|
|
|
@ -28,11 +28,7 @@ keyboard en
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
|
|
# autologin lightdm and session default xfce
|
|
|
|
|
sed -i 's/^#autologin-user=.*/autologin-user=live/' /etc/lightdm/lightdm.conf
|
|
|
|
|
sed -i 's/^#autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/lightdm.conf
|
|
|
|
|
sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf
|
|
|
|
|
|
|
|
|
|
# XXX for tests, TODO: move to package
|
|
|
|
|
ln -sfr /etc/X11/xinit/xinitrc.d/50-systemd-user.sh /etc/X11/xinit.d
|
|
|
|
|
|
|
|
|
|
### Manually (re)generate initrds
|
|
|
|
@ -66,6 +62,15 @@ find /boot -name 'vmlinuz-*' | sort -u | while read -r line ; do
|
|
|
|
|
done
|
|
|
|
|
find /boot -name 'initrd-*' -print
|
|
|
|
|
|
|
|
|
|
# autologin lightdm and session default xfce
|
|
|
|
|
cat > /etc/anaconda-scripts.d/livecd-init/rosa-xfce-live-lightdm.sh << 'EOF'
|
|
|
|
|
CONF=/etc/lightdm/lightdm.conf.d/rosa-xfce-live.conf
|
|
|
|
|
echo "autologin-user=live" >> "$CONF"
|
|
|
|
|
echo "autologin-user-timeout=0" >> "$CONF"
|
|
|
|
|
echo "user-session=xfce" >> "$CONF"
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x /etc/anaconda-scripts.d/livecd-init/rosa-xfce-live-lightdm.sh
|
|
|
|
|
|
|
|
|
|
%end
|
|
|
|
|
|
|
|
|
|
# debug
|
|
|
|
|