Bug#489483: grub-pc: bashism in install script

Simon Raven simon.raven at gmail.com
Sun Jul 6 06:02:12 UTC 2008


Package: grub-pc
Version: 1.96+20080704-1
Severity: normal

Errors were encountered while processing:
 grub-pc
 grub2
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up grub-pc (1.96+20080704-1) ...
Updating /boot/grub/grub.cfg ...
[: 212: ==: unexpected operator
[: 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
dpkg: dependency problems prevent configuration of grub2:
 grub2 depends on grub-pc; however:
  Package grub-pc is not configured yet.
dpkg: error processing grub2 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 grub-pc
 grub2

this is the bashism, the "==":
[: 212: ==: unexpected operator

thanks
simon

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/root / ext3 rw,errors=remount-ro,user_xattr,acl,data=ordered 0 0
/dev/root /dev/.static/dev ext3 rw,errors=remount-ro,user_xattr,acl,data=ordered 0 0
/dev/hdb1 /media/hdb ext3 rw,errors=continue,user_xattr,acl,data=ordered 0 0
/dev/mapper/system-usr /media/hdb/usr ext3 rw,errors=continue,user_xattr,acl,data=ordered 0 0
/dev/mapper/system-home /media/hdb/home ext3 rw,errors=continue,user_xattr,acl,data=ordered 0 0
/dev/mapper/system-var /media/hdb/var ext3 rw,errors=continue,user_xattr,acl,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(fd0)	/dev/fd0
(hd0)	/dev/hda
(hd1)	/dev/hdb
(hd2)	/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=10
if font /usr/share/grub/unicode.pff ; then
  set gfxmode=800x600
  insmod gfxterm
  insmod vbe
  terminal gfxterm
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### 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,1)
search --fs-uuid --set e69908d7-a573-4510-a100-3f077943db4e
menuentry "Debian GNU/Linux, linux 2.6.25-acahkos" {
	linux	/boot/vmlinuz-2.6.25-acahkos root=/dev/hda1 ro root=/dev/hda1 vga=ask video=vesafb:1024x768-70,cmode:32 lapic 
}
menuentry "Debian GNU/Linux, linux 2.6.25-acahkos (single-user mode)" {
	linux	/boot/vmlinuz-2.6.25-acahkos root=/dev/hda1 ro single root=/dev/hda1 vga=ask video=vesafb:1024x768-70,cmode:32 lapic
}
menuentry "Debian GNU/Linux, linux 2.6.25-2-686" {
	linux	/boot/vmlinuz-2.6.25-2-686 root=UUID=e69908d7-a573-4510-a100-3f077943db4e ro root=/dev/hda1 vga=ask video=vesafb:1024x768-70,cmode:32 lapic 
	initrd	/boot/initrd.img-2.6.25-2-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-2-686 (single-user mode)" {
	linux	/boot/vmlinuz-2.6.25-2-686 root=UUID=e69908d7-a573-4510-a100-3f077943db4e ro single root=/dev/hda1 vga=ask video=vesafb:1024x768-70,cmode:32 lapic
	initrd	/boot/initrd.img-2.6.25-2-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux	/memtest86+.bin
}
### END /etc/grub.d/20_memtest86+ ###
*********************** END /boot/grub/grub.cfg

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

Kernel: Linux 2.6.25-acahkos
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.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:
* grub-pc/linux_cmdline:
* grub-pc/chainload_from_menu.lst: true





More information about the Pkg-grub-devel mailing list