help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRUB2, GPT, mdadm & LVM


From: Andrey Borzenkov
Subject: Re: GRUB2, GPT, mdadm & LVM
Date: Fri, 19 Jul 2013 14:01:56 +0400

В Fri, 19 Jul 2013 11:21:44 +0200
Sander Smeenk <address@hidden> пишет:

> Quoting Andrey Borzenkov (address@hidden):
> 
> > > Unfortunately, adding biosdisk to the list doesn't give me a working
> > > GRUB either. Device (md/0) shows but (lvm/fdi-host_root) doesn't.
> > Could you test current trunk? There were some changes in how grub scans
> > for multilayer devices; it may have fixed it.
> 
> Tried that.
> 
> I had to patch util/getroot.c since the 'vgs' tool called by grub-probe
> now returns '  /dev/md0  ' and util/getroot.c only stripped the
> preceeding spaces.
> 

I just submitted patch to grub-devel which tries to solve it in more
generic way. It is actually change in LVM behavior (I have here two
different LVM versions, one is OK, another exhibits this issue).

> --- getroot.c.orig  2013-07-19 11:20:26.129871738 +0200
> +++ getroot.c   2013-07-19 11:04:05.996377299 +0200
> @@ -1379,7 +1379,7 @@
>        for (ptr = buf; ptr < buf + 2 && *ptr == ' '; ptr++);
>        if (*ptr == '\0')
>     continue;
> -      *(ptr + strlen (ptr) - 1) = '\0';
> +      *(ptr + strlen (ptr) - 3) = '\0';
>        grub_util_pull_device (ptr);
>      }
> 
> The resulting grub installs fine but doesn't boot either, same symptoms.
> Please see the reply to your other message in this thread.
> 
> -Sndr.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]