From: Felix Zielcke <fzielcke@z-51.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: grub-mkconfig fails on every non i386-pc because of gfxterm/vbe
Date: Sun, 23 Aug 2009 10:22:49 +0200 [thread overview]
Message-ID: <1251015769.3612.3.camel@fz.local> (raw)
In-Reply-To: <1250806721.2668.62.camel@mj>
[-- Attachment #1: Type: text/plain, Size: 553 bytes --]
Am Donnerstag, den 20.08.2009, 18:18 -0400 schrieb Pavel Roskin:
> On Wed, 2009-08-19 at 17:18 +0200, Robert Millan wrote:
>
> > The eye candy is nice but not so important. For me, gfxterm should be
> > default on platforms where it's available, because it implements UTF-8,
> > which is necessary to support l10n.
>
> Fine with me. Just please don't rely on existence of modules.
>
Here's now a patch which moves the check for vbe.mod from 00_header to
grub-mkconfig and enables gfxterm if it's found.
--
Felix Zielcke
Proud Debian Maintainer
[-- Attachment #2: gfxterm.patch --]
[-- Type: text/x-patch, Size: 2510 bytes --]
2009-08-23 Felix Zielcke <fzielcke@z-51.de>
* util/grub.d/00_header.in: Move check for the video backend of
gfxterm from here ...
* util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
a suitable video backend.
Index: util/grub.d/00_header.in
===================================================================
--- util/grub.d/00_header.in (revision 2508)
+++ util/grub.d/00_header.in (working copy)
@@ -73,23 +73,11 @@ case x${GRUB_TERMINAL_OUTPUT} in
# Make the font accessible
prepare_grub_to_access_device `${grub_probe} --target=device ${GRUB_FONT_PATH}`
- # Pick a video backend
- video_backend=
- for i in vbe ; do
- if test -e ${grub_prefix}/$i.mod ; then
- video_backend=$i
- break
- fi
- done
- if ! [ "${video_backend}" ] ; then
- echo "No suitable backend could be found for gfxterm." >&2 ; exit 1
- fi
-
cat << EOF
if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then
set gfxmode=${GRUB_GFXMODE}
insmod gfxterm
- insmod ${video_backend}
+ insmod ${GRUB_VIDEO_BACKEND}
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
Index: util/grub-mkconfig.in
===================================================================
--- util/grub-mkconfig.in (revision 2508)
+++ util/grub-mkconfig.in (working copy)
@@ -141,7 +141,24 @@ if [ "x${GRUB_TERMINAL}" != "x" ] ; then
fi
case x${GRUB_TERMINAL_OUTPUT} in
- x | xconsole | xserial | xofconsole | xgfxterm) ;;
+ x | xgfxterm)
+ # If this platform supports gfxterm, try to use it.
+ if test -e ${grub_prefix}/gfxterm.mod ; then
+ GRUB_VIDEO_BACKEND=
+ for i in vbe ; do
+ if test -e ${grub_prefix}/$i.mod ; then
+ GRUB_VIDEO_BACKEND=$i
+ break
+ fi
+ done
+ if [ -n "${GRUB_VIDEO_BACKEND}" ] ; then
+ GRUB_TERMINAL_OUTPUT=gfxterm
+ elif [ "${GRUB_TERMINAL_OUTPUT}" = "gfxterm" ] ; then
+ echo "No suitable backend could be found for gfxterm." >&2 ; exit 1
+ fi
+ fi
+ ;;
+ xconsole | xserial | xofconsole) ;;
*) echo "Invalid output terminal \"${GRUB_TERMINAL_OUTPUT}\"" >&2 ; exit 1 ;;
esac
@@ -190,7 +207,8 @@ export GRUB_DEVICE \
GRUB_DEVICE_BOOT_UUID \
GRUB_FS \
GRUB_FONT_PATH \
- GRUB_PRELOAD_MODULES
+ GRUB_PRELOAD_MODULES \
+ GRUB_VIDEO_BACKEND
# These are optional, user-defined variables.
export GRUB_DEFAULT \
next prev parent reply other threads:[~2009-08-23 8:23 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-03 9:43 grub-mkconfig fails on every non i386-pc because of gfxterm/vbe Felix Zielcke
2009-06-03 20:55 ` Pavel Roskin
2009-06-03 22:11 ` Felix Zielcke
2009-06-09 20:24 ` Felix Zielcke
2009-06-12 1:09 ` Pavel Roskin
2009-08-14 6:44 ` Felix Zielcke
2009-08-18 17:58 ` Pavel Roskin
2009-08-18 18:09 ` Felix Zielcke
2009-08-18 18:25 ` Michal Suchanek
2009-06-11 16:09 ` Vladimir 'phcoder' Serbinenko
2009-07-22 11:04 ` Felix Zielcke
2009-08-18 17:44 ` Pavel Roskin
2009-08-18 17:53 ` Vladimir 'phcoder' Serbinenko
2009-08-18 18:11 ` Pavel Roskin
2009-08-19 15:18 ` Robert Millan
2009-08-20 22:18 ` Pavel Roskin
2009-08-20 22:45 ` Vladimir 'phcoder' Serbinenko
2009-08-21 11:14 ` Michal Suchanek
2009-08-23 8:22 ` Felix Zielcke [this message]
2009-08-23 11:03 ` Robert Millan
2009-08-25 19:35 ` Robert Millan
2009-08-25 19:47 ` Felix Zielcke
2009-09-11 21:54 ` Pavel Roskin
2009-09-12 12:58 ` Robert Millan
2009-09-12 13:17 ` Felix Zielcke
2009-09-12 20:44 ` Michal Suchanek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1251015769.3612.3.camel@fz.local \
--to=fzielcke@z-51.de \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.