mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
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:
1 parent
a72fc329eb
commit
c4badfe836
2 files changed
+7
-2
No files matched your search
@@ -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)
|
||||
{
|
||||
p += sizeof ("logical_volumes = ") - 1;
|
||||
p += sizeof ("logical_volumes {") - 1;
|
||||
|
||||
/* And add all the lvs to the volume group. */
|
||||
while (1)
|
||||
|
||||
Reference in new issue
Block a user