home: hub: mkinitfs

Download patch

ref: fa54730644827b80e9dcbbe9fb094e2c99d3d8bd
parent: 21366c854a411880fe83b68aceaf20596d2b374e
author: Natanael Copa <ncopa@alpinelinux.org>
date: Fri Jun 3 04:14:40 CDT 2011

init: enable keymap support

User just need add a /etc/keymap/$map to the initramfs to get keymap
support. This is useful for encrypted apkovls and cryptsetup.

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -224,6 +224,16 @@
 	shift
 done
 
+# pick first keymap if found
+for map in /etc/keymap/*; do
+	if [ -f "$map" ]; then
+		ebegin "Setting keymap ${map##*/}"
+		zcat "$map" | loadkmap
+		eend
+		break
+	fi
+done
+
 # start bootcharting if wanted
 if [ "$KOPT_chart" = yes ]; then
 	ebegin "Starting bootchart logging"