Blame SOURCES/0077-Improve-LVM-logical_volumes-string-matching.patch

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