Improve LVM "logical_volumes" string matching
* grub-core/disk/lvm.c (grub_lvm_detect): Search for "logical_volumes" block a little more accurately.
This commit is contained in:
parent
a72fc329eb
commit
c4badfe836
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2014-04-10 Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
|
||||||
|
* grub-core/disk/lvm.c (grub_lvm_detect): Search for
|
||||||
|
"logical_volumes" block a little more accurately.
|
||||||
|
|
||||||
2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
|
2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/lib/syslinux_parse.c: Fix timeout quoting.
|
* grub-core/lib/syslinux_parse.c: Fix timeout quoting.
|
||||||
|
|
|
@ -333,10 +333,10 @@ grub_lvm_detect (grub_disk_t disk,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p = grub_strstr (p, "logical_volumes");
|
p = grub_strstr (p, "logical_volumes {");
|
||||||
if (p)
|
if (p)
|
||||||
{
|
{
|
||||||
p += sizeof ("logical_volumes = ") - 1;
|
p += sizeof ("logical_volumes {") - 1;
|
||||||
|
|
||||||
/* And add all the lvs to the volume group. */
|
/* And add all the lvs to the volume group. */
|
||||||
while (1)
|
while (1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue