<br><br><div class="gmail_quote">On Wed, Mar 11, 2009 at 1:18 PM, Paulo Cavalcanti <span dir="ltr"><<a href="mailto:promac@gmail.com">promac@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Wed, Mar 11, 2009 at 10:26 AM, Warren Togami <span dir="ltr"><<a href="mailto:wtogami@redhat.com" target="_blank">wtogami@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hans de Goede wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Please discuss making any changes to grub.conf with Peter Jones<br>
(<a href="mailto:pjones@redhat.com" target="_blank">pjones@redhat.com</a>) he knows grubby best. I'm not sure what to<br>
think about adding an option to grub.conf in general, it does<br>
make sorta sense when people install memtest86 to do that, but<br>
otoh it feels a bit wrong. I think this is best discussed on<br>
Fedora-devel, and then if there is consensus that adding a<br>
grub.conf entry is a good idea Peter Jones is the one yo ask<br>
technical questions about grubby.<br>
</blockquote>
<br>
Some background:<br>
<br>
I initially implemented memtest86+ to automatically add itself to grub.conf in %post.  Jeremy disliked this because it wont work during anaconda where grub.conf did not exist at that point yet.  He suggested just providing a script to add it to grub.conf manually, because doing so automatically would be inconsistent.<br>


<br>
As for your proposed build change to memtest86+, I have never seen grub fail to boot memtest86+ in the way that you described, and also upstream doesn't build it in that way.  Please discuss with upstream your proposed build changes.<br>

<font color="#888888">
</font></blockquote></div></div><div><br>There are plenty of references to "Error 28: Selected item cannot fit into memory"<br>on google:<br><br><a href="http://ubuntuforums.org/showthread.php?t=706261" target="_blank">http://ubuntuforums.org/showthread.php?t=706261</a><br>

<br><a href="http://www.smop.co.uk/blog/index.php/2009/01/04/grub-error-28-selected-item-cannot-fit-into-memory/" target="_blank">http://www.smop.co.uk/blog/index.php/2009/01/04/grub-error-28-selected-item-cannot-fit-into-memory/</a><br>

<br><a href="http://savannah.gnu.org/bugs/?3404" target="_blank">http://savannah.gnu.org/bugs/?3404</a><br><br>In fact, I think memtest86 is supposed to be run using a floppy, a CD-Rom<br>or a Pen-drive. Adding an entry in grub.conf for booting from the HD<br>

is something Linux distributions have done so users may only reboot<br>and choose memtest86 from the boot menu. <br>Therefore, this is an issue we have to deal with by<br>ourselves, because grub is not an upstream's problem.<br>

<br>Unless I am missing something here ....<br> </div></div></blockquote><div><br>I have a working version, which follows, basically, what has<br>been proposed here:<br> </div></div><a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=319837">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=319837</a><br>
<br>I have been using it for a long time, and it works just fine.<br>But it requires a grub entry like this:<br><br>title Memtest86+ (2.11)<br>        kernel --type=netbsd /memtest86+-2.11<br><br>I altered the script /usr/sbin/memtest-setup<br>
to accomplish that, but I would like to have some comments<br>about this issue. The script is supposed to work for lilo also,<br>but my hack is for grub only.<br><br>.....<br><br>if [ "$RETVAL" != "0" ]; then<br>
    echo "ERROR: grubby failed to configure your bootloader for $MTPATH."<br>    exit $RETVAL<br>else<br>    sed -i -e's,kernel /memtest86+,kernel --type=netbsd /memtest86+,' /boot/grub/grub.conf<br>    sed -i -e"s,/memtest86+-$MTVERSION.*,/memtest86+-$MTVERSION," /boot/grub/grub.conf<br>
fi<br><br>echo "Setup complete."<br><br><br>-- <br>Paulo Roma Cavalcanti<br>LCG - UFRJ<br>