home: hub: mkinitfs

Download patch

ref: 32a4fa18e164a4ac1f4cbbba8644cf74892cc4ba
parent: 76028dc92b86181202ef2c5302bc04458dd94629
author: Natanael Copa <ncopa@alpinelinux.org>
date: Tue Nov 8 06:27:59 CST 2022

init: load keyboard drivers before singlemode shell

fixes https://gitlab.alpinelinux.org/alpine/mkinitfs/-/issues/32

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -504,14 +504,15 @@
 
 # check if root=... was set
 if [ -n "$KOPT_root" ]; then
+	# run nlplug-findfs before SINGLEMODE so we load keyboard drivers
+	ebegin "Mounting root"
+	nlplug-findfs $cryptopts -p /sbin/mdev ${KOPT_debug_init:+-d} \
+		$KOPT_root
+
 	if [ "$SINGLEMODE" = "yes" ]; then
 		echo "Entering single mode. Type 'exit' to continue booting."
 		sh
 	fi
-
-	ebegin "Mounting root"
-	nlplug-findfs $cryptopts -p /sbin/mdev ${KOPT_debug_init:+-d} \
-		$KOPT_root
 
 	if echo "$KOPT_modules $rootfstype" | grep -qw btrfs; then
 		/sbin/btrfs device scan >/dev/null || \