[Pkg-libvirt-commits] [libguestfs] 10/66: resize: add function set_partition_bootable_and_id
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 3 14:47:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag debian/1%1.27.54-1
in repository libguestfs.
commit b9063b7c2f0ee94bef46c79d1bc50b018c22c686
Author: Hu Tao <hutao at cn.fujitsu.com>
Date: Fri Sep 19 15:39:12 2014 +0800
resize: add function set_partition_bootable_and_id
Signed-off-by: Hu Tao <hutao at cn.fujitsu.com>
---
resize/resize.ml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/resize/resize.ml b/resize/resize.ml
index f235aad..9d56e23 100644
--- a/resize/resize.ml
+++ b/resize/resize.ml
@@ -1138,8 +1138,7 @@ read the man page virt-resize(1).
* so that we can magically change the primary partition to an extended
* partition if necessary.
*)
- List.iter (
- fun p ->
+ let set_partition_bootable_and_id p =
if p.p_bootable then
g#part_set_bootable "/dev/sdb" p.p_target_partnum true;
@@ -1155,7 +1154,8 @@ read the man page virt-resize(1).
| MBR, MBR_ID mbr_id ->
g#part_set_mbr_id "/dev/sdb" p.p_target_partnum mbr_id
| GPT, (No_ID|MBR_ID _) | MBR, (No_ID|GPT_Type _) -> ()
- ) partitions;
+ in
+ List.iter set_partition_bootable_and_id partitions;
(* Fix the bootloader if we aligned the first partition. *)
if align_first_partition_and_fix_bootloader then (
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list