Bug#414798: update-grub with grep --color enable fails

sebastien COUPPEY sebastien.couppey at wanadoo.fr
Tue Mar 13 22:43:37 CET 2007


Package: grub
Version: 0.97-23
Severity: normal


The grep color option is enabled in my bashrc as :

export GREP_OPTIONS='--color=always'


Updating the grub package I had the following error.
Removing the color option and run the script again solved the problem

Thanks

Running postinst hook script /usr/sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and
setting the default boot entry to 0
Testing for an existing GRUB menu.lst file ... found:
/boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
grep: Invalid range end
grep: Invalid range end
grep: Invalid range end
grep: Invalid range end
grep: Invalid range end
grep: Invalid range end
Found kernel: /boot/vmlinuz-2.6.18-4-686
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_18_4_686}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_18_4}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_18}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m}: bad substitution
Found kernel: /boot/vmlinuz-2.6.18-3-686
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_18_3_686}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_18_3}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_18}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m}: bad substitution
Found kernel: /boot/vmlinuz-2.6.18-2-686
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_18_2_686}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_18_2}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_18}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m}: bad substitution
Found kernel: /boot/vmlinuz-2.6.18-1-686
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_18_1_686}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_18_1}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_18}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m}: bad substitution
Found kernel: /boot/vmlinuz-2.6.16-2-686-smp
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_16_2_686_smp}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_16_2_686}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_16_2}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_16}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m}: bad substitution
Found kernel: /boot/vmlinuz-2.6.16-1-686-smp
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_16_1_686_smp}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_16_1_686}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_16_1}: bad
substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6_16}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2_6}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m_2}: bad substitution
/usr/sbin/update-grub: line 578: ${kopt_01;31m}: bad substitution
Updating /boot/grub/menu.lst ... done








-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages grub depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libncurses5                 5.5-5        Shared libraries for terminal hand

grub recommends no packages.

-- no debconf information




More information about the Pkg-grub-devel mailing list