From cde52cb4866fe8cf4a19bb2bb32ff7802e542e19 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Tue, 7 May 2019 13:09:53 +0200 Subject: [PATCH] base-files: add console to inittab When running OpenWrt inside an LXC container no shell is opend as LXC defaults to a virtual /dev/console. This patch allows to enter a shell after starting the container via `lxc-start`, without it is only posible to access a shell on tty1 via `lxc-console`. Signed-off-by: Paul Spooren --- target/linux/x86/base-files/etc/inittab | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/x86/base-files/etc/inittab b/target/linux/x86/base-files/etc/inittab index f4747f200d..eb0b57ba18 100644 --- a/target/linux/x86/base-files/etc/inittab +++ b/target/linux/x86/base-files/etc/inittab @@ -3,3 +3,4 @@ ttyS0::askfirst:/usr/libexec/login.sh hvc0::askfirst:/usr/libexec/login.sh tty1::askfirst:/usr/libexec/login.sh +console::askfirst:/usr/libexec/login.sh -- 2.25.1