소스 검색

dracut/adduser.sh: repair autologin with the latest agetty runit service.

Juan RP 10 년 전
부모
커밋
29340d664e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dracut/adduser.sh

+ 1 - 1
dracut/adduser.sh

@@ -27,7 +27,7 @@ fi
 
 # Enable autologin for agetty(8) on tty1 with runit.
 if [ -d ${NEWROOT}/etc/runit ]; then
-    sed -e "s|\-8|& -a $USERNAME|g" -i ${NEWROOT}/etc/sv/agetty-tty1/run
+    sed "s|agetty|& -a $USERNAME|" -i ${NEWROOT}/etc/sv/agetty-tty1/run
 fi
 
 # Enable autologin for agetty(8) on tty1 with systemd.