Bug#381237: /sbin/update-grub: bashism results in only unbootable entries in menu.lst

Michal Politowski mpol at charybda.icm.edu.pl
Wed Aug 2 23:35:33 UTC 2006


Package: grub
Version: 0.97-13
File: /sbin/update-grub

update-grub uses the non-POSIX 'local' command.
What's worse it uses it in a way relying on its bash semantics.
dash manual explicitely states that "When a variable is made local, it
inherits the initial value and exported and readonly flags from the
variable with the same name in the surrounding scope, if there is one."
This means that in dash the 'hypervisor' variable is not made empty
by its local declaration in write_kernel_entry
and the written entry for a non-xen kernel is incorrect and unbootable.

-- 
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20060803/ce30890b/attachment.pgp


More information about the Pkg-grub-devel mailing list