From c70eb89d6b2d90f578fdfba2f857749be4f02040 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 2 Aug 2018 01:26:16 +0300 Subject: [PATCH] display-manager-autologin.sh: configure sddm autologin for kde live iso. --- dracut/vmklive/display-manager-autologin.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dracut/vmklive/display-manager-autologin.sh b/dracut/vmklive/display-manager-autologin.sh index 0033cf0..fd10270 100644 --- a/dracut/vmklive/display-manager-autologin.sh +++ b/dracut/vmklive/display-manager-autologin.sh @@ -21,6 +21,16 @@ if [ -d ${NEWROOT}/etc/gdm ]; then fi fi +# Configure sddm autologin for the kde iso. +if [ -r ${NEWROOT}/etc/sddm.conf ]; then + mv ${NEWROOT}/etc/sddm.conf ${NEWROOT}/etc/sddm.conf.old + cat > ${NEWROOT}/etc/sddm.conf <<_EOF +[Autologin] +User=anon +Session=plasma.desktop +_EOF +fi + # Configure lightdm autologin. if [ -r ${NEWROOT}/etc/lightdm.conf ]; then sed -i -e "s|^\#\(default-user=\).*|\1$USERNAME|" \