From 8427257b986105d09c4c287e739af152dc6ccfce Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 26 Nov 2014 13:53:23 +0000 Subject: [PATCH] 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 --- initramfs-init.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/initramfs-init.in b/initramfs-init.in index 7831995..4b010f6 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -386,7 +386,7 @@ eval set -- `cat /proc/cmdline` 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 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 -- 2.1.3