Bug#562034: grub-common: 30_os-prober fails under dash
tony mancill
tmancill at debian.org
Tue Dec 22 05:18:54 UTC 2009
Package: grub-common
Version: 1.98~20091221-1
Severity: important
Tags: patch
After upgrading from squeeze to sid, I am getting the following error
from the 30_os-prober script. The dash shell doens't support the
function keyword - the attached patch addresses the issue for me.
Thank you,
Tony
$ sudo dpkg --configure grub-pc
Setting up grub-pc (1.98~20091221-1) ...
Installation finished. No error reported.
Generating grub.cfg ...
Found background image: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.32-trunk-686-bigmem
Found initrd image: /boot/initrd.img-2.6.32-trunk-686-bigmem
...
/etc/grub.d/30_os-prober: 40: function: not found
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
grub-pc
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26 (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
-------------- next part --------------
--- 30_os-prober.ORIG 2009-12-21 14:55:53.000000000 -0800
+++ 30_os-prober 2009-12-21 21:16:06.000000000 -0800
@@ -37,7 +37,7 @@
exit 0
fi
-function osx_entry {
+osx_entry() {
cat << EOF
menuentry "${LONGNAME} (${2}-bit) (on ${DEVICE})" {
EOF
More information about the Pkg-grub-devel
mailing list