You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
828 B
25 lines
828 B
From 43663f1226da0a6284b5f52f6e2f741473c077b6 Mon Sep 17 00:00:00 2001 |
|
From: "Brian C. Lane" <bcl@redhat.com> |
|
Date: Fri, 3 Feb 2012 13:03:27 -0800 |
|
Subject: [PATCH] libparted: copy pmbr_boot when duplicating GPT disk |
|
|
|
* libparted/labels/gpt.c (gpt_duplicate): copy pmbr_boot flag |
|
--- |
|
libparted/labels/gpt.c | 1 + |
|
1 files changed, 1 insertions(+), 0 deletions(-) |
|
|
|
diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c |
|
index bad9ed4..0f07250 100644 |
|
--- a/libparted/labels/gpt.c |
|
+++ b/libparted/labels/gpt.c |
|
@@ -562,6 +562,7 @@ gpt_duplicate (const PedDisk *disk) |
|
old_disk_data->data_area.length); |
|
new_disk_data->entry_count = old_disk_data->entry_count; |
|
new_disk_data->uuid = old_disk_data->uuid; |
|
+ new_disk_data->pmbr_boot = old_disk_data->pmbr_boot; |
|
return new_disk; |
|
} |
|
|
|
-- |
|
1.7.6.5 |
|
|
|
|