Bug#412334: update-grub does fail if grub is under /boot/boot/grub

dorileo ldorileo at gmail.com
Tue Feb 27 16:20:46 CET 2007


Hi Jürgen

Could you try the attached patch? I think this is a better aproach and avoids 
future problems.

Thanks

--
Dorileo

On Sunday 25 February 2007 14:29, jlueters wrote:
> Package: grub
> Version: 0.97-23
> Severity: important
>
> If grub is under /boot/boot/grub update grub fails because it does
> call "grub-set-default" without parameter ""--root-directory".
> grub-set-default fails because it has been provided with the wrong root
> directory.
>
> Possible fix:
>
> line 400
> replace
> 	grub-set-default  0
>
> with
> 	if [ $grub_dir = /boot/boot/grub ]
>   		then grub-set-default --root-directory=/boot 0
> 		else grub-set-default --root-directory=/     0
> 	fi
>
>
> Jürgen
>
> -- System Information:
> Debian Release: 4.0
>   APT prefers testing-proposed-updates
>   APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.18
> Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
>
> Versions of packages grub depends on:
> ii  libc6                       2.3.6.ds1-11 GNU C Library: Shared
> libraries ii  libncurses5                 5.5-5        Shared libraries for
> terminal hand
>
> grub recommends no packages.
>
> -- no debconf information
>
>
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub-set-default_find-grub-dir.patch
Type: text/x-diff
Size: 1279 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20070227/380f0e03/grub-set-default_find-grub-dir-0005.bin


More information about the Pkg-grub-devel mailing list