home: hub: mkinitfs

Download patch

ref: 060a3bfee6e66d05743013c846cefa15c888dfed
parent: b446f1c7a6b850613b7a64187ee90c9baeb93194
author: Natanael Copa <ncopa@alpinelinux.org>
date: Mon May 1 15:35:50 CDT 2023

init: ignore tty devices that gives I/O errors

fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/11599

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -111,6 +111,10 @@
 	# Inquire the kernel for list of console= devices
 	consoles="$(for c in console $KOPT_consoles; do list_console_devices $c; done)"
 	for tty in $consoles; do
+		# ignore tty devices that gives I/O error
+		if ! stty -g -F /dev/$tty >/dev/null 2>/dev/null; then
+			continue
+		fi
 		# do nothing if inittab already have the tty set up
 		if ! grep -q "^$tty:" $sysroot/etc/inittab 2>/dev/null; then
 			echo "# enable login on alternative console" \