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
22fi22fi
23 23
24# Configure sddm autologin for the kde iso.24# Configure sddm autologin for the kde iso.
25if [ -r ${NEWROOT}/etc/sddm.conf ]; then25if [ -x ${NEWROOT}/usr/bin/sddm ]; then
26 mv ${NEWROOT}/etc/sddm.conf ${NEWROOT}/etc/sddm.conf.old
27 cat > ${NEWROOT}/etc/sddm.conf <<_EOF26 cat > ${NEWROOT}/etc/sddm.conf <<_EOF
28[Autologin]27[Autologin]
29User=anon28User=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