|
|
39700a |
From d576e05a7bfe25413f70b54f671f305397bacf5e Mon Sep 17 00:00:00 2001
|
|
|
39700a |
From: Colin Watson <cjwatson@ubuntu.com>
|
|
|
39700a |
Date: Thu, 10 Apr 2014 14:42:41 +0100
|
|
|
39700a |
Subject: [PATCH 077/143] Improve LVM "logical_volumes" string matching
|
|
|
39700a |
|
|
|
39700a |
* grub-core/disk/lvm.c (grub_lvm_detect): Search for
|
|
|
39700a |
"logical_volumes" block a little more accurately.
|
|
|
39700a |
---
|
|
|
39700a |
ChangeLog | 5 +++++
|
|
|
39700a |
grub-core/disk/lvm.c | 4 ++--
|
|
|
39700a |
2 files changed, 7 insertions(+), 2 deletions(-)
|
|
|
39700a |
|
|
|
39700a |
diff --git a/ChangeLog b/ChangeLog
|
|
|
39700a |
index 50d9291..7f0c57d 100644
|
|
|
39700a |
--- a/ChangeLog
|
|
|
39700a |
+++ b/ChangeLog
|
|
|
39700a |
@@ -1,3 +1,8 @@
|
|
|
39700a |
+2014-04-10 Colin Watson <cjwatson@ubuntu.com>
|
|
|
39700a |
+
|
|
|
39700a |
+ * grub-core/disk/lvm.c (grub_lvm_detect): Search for
|
|
|
39700a |
+ "logical_volumes" block a little more accurately.
|
|
|
39700a |
+
|
|
|
39700a |
2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
39700a |
|
|
|
39700a |
* grub-core/lib/syslinux_parse.c: Fix timeout quoting.
|
|
|
39700a |
diff --git a/grub-core/disk/lvm.c b/grub-core/disk/lvm.c
|
|
|
39700a |
index 483c17e..862a966 100644
|
|
|
39700a |
--- a/grub-core/disk/lvm.c
|
|
|
39700a |
+++ b/grub-core/disk/lvm.c
|
|
|
39700a |
@@ -333,10 +333,10 @@ grub_lvm_detect (grub_disk_t disk,
|
|
|
39700a |
}
|
|
|
39700a |
}
|
|
|
39700a |
|
|
|
39700a |
- p = grub_strstr (p, "logical_volumes");
|
|
|
39700a |
+ p = grub_strstr (p, "logical_volumes {");
|
|
|
39700a |
if (p)
|
|
|
39700a |
{
|
|
|
39700a |
- p += sizeof ("logical_volumes = ") - 1;
|
|
|
39700a |
+ p += sizeof ("logical_volumes {") - 1;
|
|
|
39700a |
|
|
|
39700a |
/* And add all the lvs to the volume group. */
|
|
|
39700a |
while (1)
|
|
|
39700a |
--
|
|
|
39700a |
1.9.3
|
|
|
39700a |
|