home: hub: mkinitfs

Download patch

ref: 8427257b986105d09c4c287e739af152dc6ccfce
parent: 8785cfa9ce642d8b4cde64ea0e4c497aa55a5780
author: Natanael Copa <ncopa@alpinelinux.org>
date: Wed Nov 26 07:53:23 CST 2014

init: fix loading of fbcon

we check if /sys/class/graphics/fb0 exists before loading fbcon and
allow user to disable tiwh nofbcon as boot option

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -386,7 +386,7 @@
 
 myopts="alpine_dev autodetect autoraid chart cryptroot cryptdm debug_init
 	dma init_args keep_apk_new modules ovl_dev pkgs quiet root_size root
-	usbdelay ip alpine_repo apkovl alpine_start"
+	usbdelay ip alpine_repo apkovl alpine_start nofbcon"
 
 for opt; do
 	case "$opt" in
@@ -524,11 +524,11 @@
 scan_drivers
 eend 0
 
-ebegin "Setting up framebuffer console"
-if [ -d /lib/modules/`uname -r`/kernel/drivers/gpu ]; then
+if [ -z "$KOPT_nofbcon" ] && [ -e /sys/class/graphics/fb0 ]; then
+	ebegin "Setting up framebuffer console"
 	modprobe -q fbcon &>/dev/null
+	eend 0
 fi
-eend 0
 
 # check if root=... was set
 if [ -n "$KOPT_root" ]; then