Fix LVM listing
This commit is contained in:
parent
4defebbec8
commit
716aa45e40
1 changed files with 1 additions and 4 deletions
|
@ -129,10 +129,7 @@ grub_lvm_iterate (int (*hook) (const char *name),
|
|||
for (lv = vg->lvs; lv; lv = lv->next)
|
||||
if (lv->visible && lv->number >= old_count)
|
||||
{
|
||||
char lvname[sizeof ("lvm/") + grub_strlen (lv->name)];
|
||||
grub_memcpy (lvname, "lvm/", sizeof ("lvm/") - 1);
|
||||
grub_strcpy (lvname + sizeof ("lvm/") - 1, lv->name);
|
||||
if (hook (lvname))
|
||||
if (hook (lv->fullname))
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue