<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 09/15/2011 12:01 PM, Matthew Garrett wrote:
    <blockquote cite="mid:20110915160125.GA15151@srcf.ucam.org"
      type="cite">
      <pre wrap="">On Thu, Sep 15, 2011 at 04:56:43PM +0100, Richard W.M. Jones wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">For grub1 guests, it has turned out not to matter which specific
version of grub [as long as it was grub1] was used, as apparently
grub-install updates all files needed in /boot/grub as appropriate.
Or at least we haven't come across a guest where this hasn't worked
(yet -- we could be in for a surprise).
</pre>
      </blockquote>
      <pre wrap="">
The most obvious case where it can fail involves grub being effectively 
unmaintained, and so various vendors have extended it in different ways. 
You may end up with valid configuration files for one distribution that 
can't be parsed by the grub for another. The assumption you're making is 
fragile. It's even worse for grub2, since it has a built-in module 
loader. Modules built for one version of grub aren't guaranteed (or even 
really expected) to work when loaded into another.

</pre>
    </blockquote>
    Hmm... there isn't a version check to prevent this???? Seems sort of
    fragile.<br>
    <blockquote cite="mid:20110915160125.GA15151@srcf.ucam.org"
      type="cite">
      <blockquote type="cite">
        <pre wrap="">I'm very interested in how to reinstall bootloaders *without* invoking
guest code.  Also in how to not break the bootloader when moving or
aligning the boot partition, which sometimes happens for reasons we
don't understand (but not on all grub1 guests, only on RHEL 5 era
grub1).
</pre>
      </blockquote>
      <pre wrap="">
You're asking for the impossible. The only supportable bootloader for a 
specific guest is the bootloader that matches the installed OS. If you 
want to support grub2 on Ubuntu, for instance, you'll need Ubuntu's 
grub2 - not Fedora's. The binary interface may have changed between 
them.

</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      Stephen&nbsp;Clark<br>
      <b>NetWolves</b><br>
      Sr.&nbsp;Software&nbsp;Engineer&nbsp;III<br>
      Phone:&nbsp;813-579-3200<br>
      Fax:&nbsp;813-882-0209<br>
      Email:&nbsp;<a class="moz-txt-link-abbreviated" href="mailto:steve.clark@netwolves.com">steve.clark@netwolves.com</a><br>
      <a class="moz-txt-link-freetext" href="http://www.netwolves.com">http://www.netwolves.com</a><br>
    </div>
  </body>
</html>