|
|
23d2ea |
From 6539eeb60268e646ca9f99a6ba8967c8fcb55807 Mon Sep 17 00:00:00 2001
|
|
|
39700a |
From: Colin Watson <cjwatson@ubuntu.com>
|
|
|
39700a |
Date: Thu, 10 Apr 2014 14:42:41 +0100
|
|
|
23d2ea |
Subject: [PATCH 077/198] 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 |
--
|
|
|
23d2ea |
2.7.4
|
|
|
39700a |
|