commit 604991167c0c9f02bb5c2976889786dd76b7d529 Author: Leonid Krivoshein Date: Wed Oct 13 03:39:45 2021 +0300 bootchain-core: adds support for the early console diff --git a/bootchain-core/data/sbin/bootchained b/bootchain-core/data/sbin/bootchained index 311d1fe..9aa9947 100755 --- a/bootchain-core/data/sbin/bootchained +++ b/bootchain-core/data/sbin/bootchained @@ -35,6 +35,10 @@ if [ "x${1-}" != "x--foreground" ]; then if [ "${RDLOG-}" = console ]; then BC_LOGFILE=/dev/console + elif [ "${RDLOG-}" = printk ]; then + BC_LOGFILE=/dev/ttyprintk + [ -e "$BC_LOGFILE" ] || + mknod "$BC_LOGFILE" c 5 3 elif [ -z "${NOTTYS-}" ] && [ -n "$BC_LOG_VT" ] && [ ! -c "$BC_LOGFILE" ] &&