On Thu, Sep 22, 2011 at 05:37:39PM +0100, Matthew Garrett wrote: > On Thu, Sep 22, 2011 at 05:18:09PM +0100, Mark McLoughlin wrote: > > On Thu, 2011-09-22 at 17:00 +0100, Matthew Garrett wrote: > > > grub provides no mechanism for you to know that, which means you can't > > > reliably know that. Which means relying on them being compatible is > > > incorrect. > > > > You described yourself how libguestfs could check it. And failing > > libguestfs doing it, the user could be warned to check it. > > I described something that is, practically speaking, impossible. We allow you to inspect the guest to find the OS version, and even versions of individual packages installed in it. Using this you can make rules like "only apply grub-install to Fedora guests <= version 15", or "only to guests that have grub version between 1.A and 1.B". http://libguestfs.org/guestfs.3.html#inspection Rich. PS. Also orthogonal to this discussion: It turns out that virt-v2v doesn't use grub-install. However virt-v2v still needs some development work to support grub2 configuration. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel