Bug#562121: grub-common: Bashism in /etc/grub.d/30_os-prober makes postinst fail

Eric Estievenart eric.estievenart at free.fr
Tue Dec 22 22:50:08 UTC 2009


Package: grub-common
Version: 1.98~20091221-1
Severity: important
Tags: patch


at line 40 in /etc/grub.d/30_os-prober:

function osx_entry {

Must be replaced by:

osx_entry() {

Since the shell is #! /bin/sh -e
so it could be dash !

This generated errors during upgrade of the package, which stays
in unconfigured state, which you really don't like when it's your
bootloader. It's probably not fatal, I didn't even check if grub.cfg
was correctly updated, but since the fix is trivial.

Cheers !

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

Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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  dpkg                   1.15.5.4          Debian package management system
ii  gettext-base           0.17-8            GNU Internationalization utilities
ii  install-info           4.13a.dfsg.1-5    Manage installed documentation in 
ii  libc6                  2.10.2-2          GNU C Library: Shared libraries
ii  libfreetype6           2.3.11-1          FreeType 2 font engine, shared lib
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

Versions of packages grub-common recommends:
ii  os-prober                     1.35       utility to detect other OSes on a 

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

-- no debconf information





More information about the Pkg-grub-devel mailing list