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

5 views
Skip to first unread message

Eric Estievenart

unread,
Dec 22, 2009, 6:00:02 PM12/22/09
to
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

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Felix Zielcke

unread,
Dec 23, 2009, 3:10:02 AM12/23/09
to
forcemerge 562061 562121
thanks

Am Dienstag, den 22.12.2009, 23:50 +0100 schrieb Eric Estievenart:
> 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 !

Thanks for the report, but unfortunately you were a bit to slow. Has
been already fixed :)

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer

Reply all
Reply to author
Forward
0 new messages