From e06bcb64a5adcf321256ca6733441f72858dd014 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 15 Apr 2024 09:57:02 +0200 Subject: [PATCH] configs: run Finit getty on @console instead of /dev/console The Finit @console construct detects what your actual serial console is by looking it up in /sys/class/tty/console/active. This to avoid any weird problems that might occur when using /dev/console. Signed-off-by: Joachim Wiberg --- configs/aarch64_defconfig | 1 + configs/r2s_defconfig | 1 + configs/x86_64_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git a/configs/aarch64_defconfig b/configs/aarch64_defconfig index 5c36c907..11543b60 100644 --- a/configs/aarch64_defconfig +++ b/configs/aarch64_defconfig @@ -15,6 +15,7 @@ BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_ROOTFS_DEVICE_TABLE="system/device_table.txt ${BR2_EXTERNAL_INFIX_PATH}/board/common/xattrs" # BR2_TARGET_ENABLE_ROOT_LOGIN is not set BR2_SYSTEM_BIN_SH_BASH=y +BR2_TARGET_GENERIC_GETTY_PORT="@console" BR2_TARGET_GENERIC_GETTY_TERM="xterm" BR2_SYSTEM_DHCP="eth0" BR2_ENABLE_LOCALE_WHITELIST="C en_US en_CA" diff --git a/configs/r2s_defconfig b/configs/r2s_defconfig index da4a9258..9fa864a5 100644 --- a/configs/r2s_defconfig +++ b/configs/r2s_defconfig @@ -16,6 +16,7 @@ BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_ROOTFS_DEVICE_TABLE="system/device_table.txt ${BR2_EXTERNAL_INFIX_PATH}/board/common/xattrs ${BR2_EXTERNAL_INFIX_PATH}/board/netconf/xattrs" # BR2_TARGET_ENABLE_ROOT_LOGIN is not set BR2_SYSTEM_BIN_SH_BASH=y +BR2_TARGET_GENERIC_GETTY_PORT="@console" BR2_TARGET_GENERIC_GETTY_TERM="xterm" BR2_SYSTEM_DHCP="eth0" BR2_ENABLE_LOCALE_WHITELIST="C en_US en_CA" diff --git a/configs/x86_64_defconfig b/configs/x86_64_defconfig index fa650477..fb57c41d 100644 --- a/configs/x86_64_defconfig +++ b/configs/x86_64_defconfig @@ -14,6 +14,7 @@ BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_ROOTFS_DEVICE_TABLE="system/device_table.txt ${BR2_EXTERNAL_INFIX_PATH}/board/common/xattrs" # BR2_TARGET_ENABLE_ROOT_LOGIN is not set BR2_SYSTEM_BIN_SH_BASH=y +BR2_TARGET_GENERIC_GETTY_PORT="@console" BR2_TARGET_GENERIC_GETTY_TERM="xterm" BR2_SYSTEM_DHCP="eth0" BR2_ENABLE_LOCALE_WHITELIST="C en_US en_CA"