Package: grub-common
Version: 1.97~beta2-2
Severity: normal
File: /etc/grub.d/00_header
Tags: patch

In /etc/default/grub I have:
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

I would thus expect the gfxterm to be automatically activated, but it
isn't.

The generated code in /boot/grub/grub.cfg is
### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
terminal
### END /etc/grub.d/00_header ###

It's a bug in 00_header.

The attached patch fixes it.

Cheers,
Michael


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (300, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.31
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-common depends on:
ii  base-files             5.0.0             Debian base system miscellaneous f
ii  libc6                  2.9-26            GNU C Library: Shared libraries
ii  libfreetype6           2.3.9-5           FreeType 2 font engine, shared lib
ii  libncurses5            5.7+20090803-2    shared libraries for terminal hand
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

grub-common recommends no packages.

Versions of packages grub-common suggests:
pn  multiboot-doc                 <none>     (no description available)
ii  os-prober                     1.32       utility to detect other OSes on a 

-- no debconf information
diff --git a/grub.d/00_header b/grub.d/00_header
index 5f37c0f..6ac7f9f 100755
--- a/grub.d/00_header
+++ b/grub.d/00_header
@@ -37,7 +37,7 @@ set default=${GRUB_DEFAULT}
 set timeout=${GRUB_TIMEOUT}
 EOF
 
-case ${platform}:${GRUB_TERMINAL} in
+case ${platform}:${GRUB_TERMINAL_OUTPUT} in
   pc:gfxterm)
     # Make the font accessible
     prepare_grub_to_access_device `${grub_probe} --target=device ${GRUB_FONT_PATH}`

Reply via email to