소스 검색

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 6 년 전
부모
커밋
9bcbbc95e0
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      dracut/vmklive/display-manager-autologin.sh

+ 1 - 2
dracut/vmklive/display-manager-autologin.sh

@@ -22,8 +22,7 @@ if [ -d ${NEWROOT}/etc/gdm ]; then
 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
+if [ -x ${NEWROOT}/usr/bin/sddm ]; then
     cat > ${NEWROOT}/etc/sddm.conf <<_EOF
 [Autologin]
 User=anon