From 25fc51a87929262c1cc132bc29cc083ce98f0e0e Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Mon, 15 Apr 2013 08:37:13 +0200 Subject: [PATCH] Fix DMRAID partition handling. --- ChangeLog | 4 ++++ util/getroot.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index db6076cfd..2dcf1f514 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-04-15 Vladimir Serbinenko + + Fix DMRAID partition handling. + 2013-04-15 Vladimir Serbinenko * tests/grub_cmd_date.in: Skip on sparc64. diff --git a/util/getroot.c b/util/getroot.c index 4ea8e65c9..ecf7ce199 100644 --- a/util/getroot.c +++ b/util/getroot.c @@ -1956,6 +1956,7 @@ convert_system_partition_to_system_disk (const char *os_dev, struct stat *st, grub_util_info ("dm_tree_find_node failed"); goto devmapper_out; } + reiterate: node_uuid = dm_tree_node_get_uuid (node); if (! node_uuid) { @@ -2030,6 +2031,9 @@ convert_system_partition_to_system_disk (const char *os_dev, struct stat *st, goto devmapper_out; } mapper_name = child_name; + *is_part = 1; + node = child; + goto reiterate; devmapper_out: if (! mapper_name && node)