Bug#530736: grub-common: error:unknown command `true'

darren darren.hoo at gmail.com
Wed May 27 11:53:04 UTC 2009


Package: grub-common
Version: 1.96+20090523-1
Severity: minor

this error message shows quickly before menu list shows
this line in /etc/grub.d/00_header  caused the problem.
       if terminal_output gfxterm ; then true ; else

so grub does not support 'true' as in bash.


/boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from  and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,1)
search --fs-uuid --set 05dec405-4bc2-4173-aec6-0a9fb1fd5376
if loadfont /usr/share/grub/ascii.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set root=(hd0,1)
search --fs-uuid --set 05dec405-4bc2-4173-aec6-0a9fb1fd5376
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.30-rc7" {
	set root=(hd0,1)
	search --fs-uuid --set 05dec405-4bc2-4173-aec6-0a9fb1fd5376
	linux	/boot/vmlinuz-2.6.30-rc7
root=UUID=05dec405-4bc2-4173-aec6-0a9fb1fd5376 ro quiet splash vga=792
	initrd	/boot/initrd.img-2.6.30-rc7
}
menuentry "Debian GNU/Linux, linux 2.6.30-rc7 (recovery mode)" {
	set root=(hd0,1)
	search --fs-uuid --set 05dec405-4bc2-4173-aec6-0a9fb1fd5376
	linux	/boot/vmlinuz-2.6.30-rc7
root=UUID=05dec405-4bc2-4173-aec6-0a9fb1fd5376 ro single quiet splash
vga=792
	initrd	/boot/initrd.img-2.6.30-rc7
}
menuentry "Debian GNU/Linux, linux 2.6.29-1-686" {
	set root=(hd0,1)
	search --fs-uuid --set 05dec405-4bc2-4173-aec6-0a9fb1fd5376
	linux	/boot/vmlinuz-2.6.29-1-686
root=UUID=05dec405-4bc2-4173-aec6-0a9fb1fd5376 ro quiet splash vga=792
	initrd	/boot/initrd.img-2.6.29-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.29-1-686 (recovery mode)" {
	set root=(hd0,1)
	search --fs-uuid --set 05dec405-4bc2-4173-aec6-0a9fb1fd5376
	linux	/boot/vmlinuz-2.6.29-1-686
root=UUID=05dec405-4bc2-4173-aec6-0a9fb1fd5376 ro single quiet splash
vga=792
	initrd	/boot/initrd.img-2.6.29-1-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###


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

Kernel: Linux 2.6.30-rc7 (SMP w/2 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

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

grub-common recommends no packages.

Versions of packages grub-common suggests:
pn  multiboot-doc                 <none>     (no description available)

-- no debconf information





More information about the Pkg-grub-devel mailing list