grub / grub2 conflicts
Richard W.M. Jones
rjones at redhat.com
Thu Sep 22 18:38:54 UTC 2011
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".
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
More information about the devel