Bug#533898: Regarding GRUB 2

Michel Dänzer daenzer at debian.org
Thu Sep 10 12:11:55 UTC 2009


On Thu, 2009-09-10 at 09:38 +0000, Jörg Sommer wrote: 
> 
> Michel Dänzer <daenzer at debian.org> wrote:
> > 
> > So the search commands in the generated grub.cfg aren't causing problems
> > for you?
> 
> No, they cause problems: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533898

Not sure that's the same/only problem - the grub commands in your report
produce hd without trailing 0 here, even though the ofpathname output is
identical. But the generated search commands still don't work nor seem
necessary at boot time.

(Bug report BCC'd)


> But I use this patch:
> 
> diff --git a/grub.d/10_linux b/grub.d/10_linux
> index c642b77..a4098b0 100755
> --- a/grub.d/10_linux
> +++ b/grub.d/10_linux
> @@ -93,7 +93,7 @@ linux_entry ()
>    cat << EOF
>  menuentry "$1" {
>  EOF
> -  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
> +#  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
>    cat << EOF
>         linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro $2
>  EOF

Ah right, I think I tried this before, but the

set root=(hd,5)

commands generated by the same line turned out to be necessary here.


-- 
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer





More information about the Pkg-grub-devel mailing list