History

display-manager-autologin.sh: fix sddm detection

sddm doesn't ship with a /etc/sddm.conf as default so the old check returned false.

John Zimmermann committed 7 years ago

Commit 9bcbbc91 parent 6ce47321 file · +1 −2Browse files

Unified · Split

dracut/vmklive/display-manager-autologin.sh+1−2
@@ -22,8 +22,7 @@ if [ -d ${NEWROOT}/etc/gdm ]; then · 21 unmodified lines
2222 fi
2323
2424 # Configure sddm autologin for the kde iso.
25−if [ -r ${NEWROOT}/etc/sddm.conf ]; then
26− mv ${NEWROOT}/etc/sddm.conf ${NEWROOT}/etc/sddm.conf.old
25+if [ -x ${NEWROOT}/usr/bin/sddm ]; then
2726 cat > ${NEWROOT}/etc/sddm.conf <<_EOF
2827 [Autologin]
2928 User=anon

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t