[Libguestfs] [PATCH 2/2] grub-install: Enable grub-install tests and create explicit device.map file.
Richard W.M. Jones
rjones at redhat.com
Thu Jun 3 10:54:08 UTC 2010
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
-------------- next part --------------
>From 8fca8549edb1581448fa45d08d90bad399c5dbfa Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones at redhat.com>
Date: Thu, 3 Jun 2010 11:49:38 +0100
Subject: [PATCH 2/2] grub-install: Enable grub-install tests and create explicit device.map file.
---
src/generator.ml | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/generator.ml b/src/generator.ml
index cc34676..5cd704f 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -2320,11 +2320,14 @@ any partition tables, filesystem superblocks and so on.
See also: C<guestfs_zero_device>, C<guestfs_scrub_device>.");
("grub_install", (RErr, [Pathname "root"; Device "device"]), 86, [],
- (* Test disabled because grub-install incompatible with virtio-blk driver.
- * See also: https://bugzilla.redhat.com/show_bug.cgi?id=479760
+ (* See:
+ * https://bugzilla.redhat.com/show_bug.cgi?id=484986
+ * https://bugzilla.redhat.com/show_bug.cgi?id=479760
*)
- [InitBasicFS, Disabled, TestOutputTrue (
- [["grub_install"; "/"; "/dev/sda1"];
+ [InitBasicFS, Always, TestOutputTrue (
+ [["mkdir_p"; "/boot/grub"];
+ ["write"; "/boot/grub/device.map"; "(hd0) /dev/vda"];
+ ["grub_install"; "/"; "/dev/vda"];
["is_dir"; "/boot"]])],
"install GRUB",
"\
--
1.6.6.1
More information about the Libguestfs
mailing list