home: hub: mkinitfs

Download patch

ref: f90d409953a5b1d8145784b6cfe2870c4c8c68fe
parent: 8ec6e2a2182d42cab374a46b0b3bad7b3096cff4
parent: 651133ce9883598c54e0910d6a7589ca72f96303
author: Natanael Copa <ncopa@alpinelinux.org>
date: Tue Dec 22 05:26:02 CST 2020

Merge branch 'master' into 'master'

initramfs-init: add cmdline consoles to inittab

See merge request alpine/mkinitfs!69

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -106,7 +106,8 @@
 setup_inittab_console(){
 	term=vt100
 	# Inquire the kernel for list of console= devices
-	for tty in $(list_console_devices console); do
+	consoles="$(for c in console $KOPT_consoles; do list_console_devices $c; done)"
+	for tty in $consoles; do
 		# do nothing if inittab already have the tty set up
 		if ! grep -q "^$tty:" $sysroot/etc/inittab; then
 			echo "# enable login on alternative console" \
@@ -340,6 +341,11 @@
 	case "$opt" in
 	s|single|1)
 		SINGLEMODE=yes
+		continue
+		;;
+	console=*)
+		opt="${opt#*=}"
+		KOPT_consoles="${opt%%,*} $KOPT_consoles"
 		continue
 		;;
 	esac