fixed root login on 'UNKNOWN'

This commit is contained in:
superconvert 2022-10-23 17:06:04 +08:00
parent 0b2a902a28
commit f2fd01f9d1

View File

@ -173,7 +173,8 @@ cat<<"EOF">etc/inittab
# this yourself...
#
# Start an "askfirst" shell on the console (whatever that may be) -f root 自动登录
::respawn:-/bin/login -f root
# 一定要加 tty1 ,否则登录时,会提示 : root login on 'UNKNOWN'
tty1::respawn:-/bin/login -f root
# Start an "askfirst" shell on /dev/tty2-4
tty2::respawn:-/bin/sh
tty3::respawn:-/bin/sh