From ae327cc50fd9d3e59e9f60088243adfc69cb312e Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 6 Feb 2024 10:46:39 +0100 Subject: fix busybox booting into root shell --- rootfs/etc/inittab | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'rootfs/etc/inittab') diff --git a/rootfs/etc/inittab b/rootfs/etc/inittab index 5f4a5fa..805a39d 100644 --- a/rootfs/etc/inittab +++ b/rootfs/etc/inittab @@ -1,9 +1,8 @@ # /etc/inittab init(8) - ::sysinit:/etc/init.d/rcS ::shutdown:/bin/umount -a -r ::restart:/sbin/init -# this could be really unsafe in production -::respawn:/sbin/getty -L ttyS0 115200 vt100 -ttyS0::respawn:-/bin/login -f root +# put a shell on ttyS0 (serial header on board) +ttyS0::respawn:/bin/sh + -- cgit v1.2.3