Bug#259950: rootskel: should try to enable framebuffer only on virtual console
Package: rootskel
Version: SVN
Severity: normal
Tags: patch d-i
d-i should not try to enable framebuffer if run from serial console or
pty. This makes imposible installation using network-console and
installer image built with 2.4 kernel. Also I see no reason to exit if
installer cannot load framebuffer module (for 2.4, with 2.6 it will
never exit).
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8
Index: src/lib/debian-installer.d/S33framebuffer-module-linux-i386
===================================================================
--- src/lib/debian-installer.d/S33framebuffer-module-linux-i386 (revision 17801)
+++ src/lib/debian-installer.d/S33framebuffer-module-linux-i386 (working copy)
@@ -1,11 +1,11 @@
-if [ "`debconf-get debian-installer/framebuffer`" = true ]; then
+if [ "`debconf-get debian-installer/framebuffer`" = true ] && [ "$TERM_TYPE" = virtual ]; then
echo "Trying to enable the frame buffer..."
case $(uname -r) in
2.6.*)
(modprobe -q vesafb >/dev/null 2>&1 && modprobe -q fbcon >/dev/null 2>&1) || (modprobe -q vga16fb >/dev/null 2>&1 && modprobe -q fbcon >/dev/null 2>&1)
;;
*)
- modprobe -q vesafb >/dev/null 2>&1 || modprobe -q vga16fb >/dev/null 2>&1
+ modprobe -q vesafb >/dev/null 2>&1 || modprobe -q vga16fb >/dev/null 2>&1 || true
;;
esac
fi
Reply to: