瀏覽代碼

installer.sh.in: remove autologin for live user from agetty-tty1

fixes #211
closes #212
classabbyamp 2 年之前
父節點
當前提交
794bc7527c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      installer.sh.in

+ 1 - 0
installer.sh.in

@@ -1289,6 +1289,7 @@ ${BOLD}Do you want to continue?${RESET}" 20 80 || return
         echo "Removing $USERNAME live user from targetdir ..." >$LOG
         chroot $TARGETDIR userdel -r $USERNAME >$LOG 2>&1
         rm -f $TARGETDIR/etc/sudoers.d/99-void-live
+        sed -i "s,GETTY_ARGS=\"--noclear -a $USERNAME\",GETTY_ARGS=\"--noclear\",g" $TARGETDIR/etc/sv/agetty-tty1/conf
         TITLE="Check $LOG for details ..."
         INFOBOX "Rebuilding initramfs for target ..." 4 60
         echo "Rebuilding initramfs for target ..." >$LOG