Test patched GDM

master
Mikhail Novosyolov 3 years ago
parent 67b74500c2
commit b2807be798

@ -65,13 +65,6 @@ find /boot -name 'initrd-*' -print
# https://help.gnome.org/admin/gdm/stable/configuration.html.en#sessionconfig
# https://help.gnome.org/admin/system-admin-guide/stable/login-automatic.html.en
cat > /etc/anaconda-scripts.d/livecd-init/rosa-xfce-gdm-setup.sh << 'EOF'
echo "[org.freedesktop.DisplayManager.AccountsService]
BackgroundFile='/usr/share/backgrounds/xfce/2.jpg'
[User]
Language=ru_RU.utf8
XSession=xfce
SystemAccount=false" > /var/lib/AccountsService/users/live
echo "[daemon]
AutomaticLoginEnable=True
AutomaticLogin=live
@ -81,6 +74,13 @@ chmod +x /etc/anaconda-scripts.d/livecd-init/rosa-xfce-gdm-setup.sh
( cd /etc/systemd/system && ln -sf gdm.service display-manager.service )
# GDM is patched to read this environmental variable
mkdir -p /etc/systemd/system/gdm.service.d/
cat > /etc/systemd/system/gdm.service.d/gdm-default-session.conf << 'EOF'
[Service]
Environment=GDM_DEFAULT_SESSION=xfce
EOF
%end
# debug