From f2fd01f9d104f7d138baa02fccad0d4e513cedc0 Mon Sep 17 00:00:00 2001 From: superconvert Date: Sun, 23 Oct 2022 17:06:04 +0800 Subject: [PATCH] fixed root login on 'UNKNOWN' --- 02_build_img.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/02_build_img.sh b/02_build_img.sh index 9a37e2f..146b7e7 100755 --- a/02_build_img.sh +++ b/02_build_img.sh @@ -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