浏览代码

dracut/adduser: fix autologin kernel option

The sed replacment should be in agetty-tty1/conf not agetty-tty1/run
salahdin-ahmed 4 年之前
父节点
当前提交
7cd19aff06
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dracut/vmklive/adduser.sh

+ 1 - 1
dracut/vmklive/adduser.sh

@@ -52,5 +52,5 @@ _EOF
 fi
 
 if [ -n "$AUTOLOGIN" ]; then
-        sed -i "s,GETTY_ARGS=\"--noclear\",GETTY_ARGS=\"--noclear -a $USERNAME\",g" ${NEWROOT}/etc/sv/agetty-tty1/run
+        sed -i "s,GETTY_ARGS=\"--noclear\",GETTY_ARGS=\"--noclear -a $USERNAME\",g" ${NEWROOT}/etc/sv/agetty-tty1/conf
 fi