Bug#558042: sugesting another patch

pancho horrillo pancho at pancho.name
Sat Nov 28 08:34:08 UTC 2009


On Fri, Nov 27, 2009 at 06:25:50PM +0100, Matthias Dellweg wrote:
> The following hot fix patch seems to work. And it also kills the doubled 
> slashes (They must have been around with the old method, too.).
> Greetings, Matthias
> 
Works like a charm now.  Vielen dank!

> --- 10_linux.OLD        2009-11-27 18:17:52.000000000 +0100
> +++ 10_linux    2009-11-27 18:18:18.000000000 +0100
> @@ -87,7 +87,9 @@ while [ "x$list" != "x" ] ; do
>    echo "Found linux image: $linux" >&2
>    basename=`basename $linux`
>    dirname=`dirname $linux`
> -  rel_dirname=`make_system_path_relative_to_its_root $dirname`
> +  rel_linux=`make_system_path_relative_to_its_root $linux`
> +  rel_dirname=`dirname $rel_linux`
> +  [ "$rel_dirname" = "/" ] && rel_dirname=
>    version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
>    alt_version=`echo $version | sed -e "s,\.old$,,g"`
>    linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
> 
> 
> Am Freitag, 27. November 2009 schrieb pancho horrillo:
> > Just tried it, and this happens:
> > N.B.: Duplicate set of entries,
er, my fault.  I left around a 10_linux.orig, and it got executed too.

> > and // instead of / Grub is able to boot from // paths, though.
> 
Extra note.  I noticed that memtest86 entries get the relative path OK
(in the unpatched version, I mean).

-- 
pancho horrillo

To be conscious that
you are ignorant is a great step
to knowledge.

		Benjamin Disraeli





More information about the Pkg-grub-devel mailing list