Bug#489446: grub-pc: Installation/Upgrade fails: bashisms in update-grub

Michael Biebl biebl at debian.org
Sat Jul 5 21:13:48 UTC 2008


Package: grub-pc
Version: 1.96+20080704-1
Severity: serious
Justification: makes upgrade/installation fail

Upgrading grub-pc fails with the following error message:

Updating /boot/grub/grub.cfg ...
Found Debian background: debian-blueish-wallpaper-640x480.png
[: 212: ==: unexpected operator
Found linux image: 
basename: missing operand
Try `basename --help' for more information.
dpkg: error processing grub-pc (--configure):
 subprocess post-installation script returned error exit status 1
 Errors were encountered while processing:
  grub-pc
  E: Sub-process /usr/bin/dpkg returned an error code (1)


 
Looks like a bashism: "==", should be "=".

Cheers,
Michael

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sda6 / ext3 rw,relatime,errors=remount-ro,user_xattr,acl,data=ordered 0 0
/dev/sda6 /dev/.static/dev ext3 rw,errors=remount-ro,user_xattr,acl,data=ordered 0 0
/dev/sda7 /home reiserfs rw,relatime,notail,user_xattr,acl 0 0
/dev/sda3 /mnt/gemeinsam vfat rw,nosuid,nodev,uid=1000,gid=1000,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1,utf8 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
*********************** END /boot/grub/device.map

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

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,6)
search --fs-uuid --set 5ccc1f1e-8586-4a8a-a9ed-33cea1f1731d
if font /usr/share/grub/unicode.pff ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  terminal gfxterm
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set root=(hd0,6)
search --fs-uuid --set 5ccc1f1e-8586-4a8a-a9ed-33cea1f1731d
insmod png
if background_image /usr/share/images/desktop-base/debian-blueish-wallpaper-640x480.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_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
set root=(hd0,6)
search --fs-uuid --set 5ccc1f1e-8586-4a8a-a9ed-33cea1f1731d
menuentry "Debian GNU/Linux, linux 2.6.25.10" {
	linux	/boot/vmlinuz-2.6.25.10 root=/dev/sda6 ro quiet 
	initrd	/boot/initrd.img-2.6.25.10
}
menuentry "Debian GNU/Linux, linux 2.6.25.10 (single-user mode)" {
	linux	/boot/vmlinuz-2.6.25.10 root=/dev/sda6 ro single quiet
	initrd	/boot/initrd.img-2.6.25.10
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/11_gentoo ###
menuentry "Gentoo 2007.0, kernel 2.6.25-gentoo-r6" {
	linux	(hd0,8)/boot/vmlinuz-2.6.25-gentoo-r6 root=/dev/sda8 ro quiet
}
### END /etc/grub.d/11_gentoo ###

### BEGIN /etc/grub.d/12_ubuntu ###
menuentry "Ubuntu Hardy Heron, kernel 2.6.24-19-generic" {
	linux	(hd0,9)/boot/vmlinuz-2.6.24-19-generic root=/dev/sda9 ro quiet splash 
	initrd	(hd0,9)/boot/initrd.img-2.6.24-19-generic
}
### END /etc/grub.d/12_ubuntu ###

### BEGIN /etc/grub.d/13_fedora ###
menuentry "Fedora 9, kernel 2.6.25-14.fc9.i686" {
	linux	(hd0,10)/boot/vmlinuz-2.6.25-14.fc9.i686 root=/dev/sda10 ro quiet rhgb 
	initrd	(hd0,10)/boot/initrd-2.6.25-14.fc9.i686.img
}
### END /etc/grub.d/13_fedora ###

### BEGIN /etc/grub.d/14_windows ###
menuentry "Windows XP" {
	set root=(hd0,1)
	chainloader +1
}
### END /etc/grub.d/14_windows ###
*********************** END /boot/grub/grub.cfg

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

Kernel: Linux 2.6.25.10
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-pc depends on:
ii  debconf [debconf-2.0]    1.5.22          Debian configuration management sy
ii  grub-common              1.96+20080704-1 GRand Unified Bootloader, version 
ii  libc6                    2.7-12          GNU C Library: Shared libraries
ii  liblzo2-2                2.03-1          data compression library
ii  libncurses5              5.6+20080621-2  shared libraries for terminal hand

grub-pc recommends no packages.

-- debconf information excluded





More information about the Pkg-grub-devel mailing list