Dan McGhee wrote:
Bruce, thanks for the links you supplied in the thread on -dev. I’m
including them here for reference.
http://www.linuxfromscratch.org/hints/downloads/files/grub2.txt?
<http://www.linuxfromscratch.org/hints/downloads/files/grub2.txt?>
http://www.linuxfromscratch.org/pipermail/lfs-dev/2009-December/063355.html
<http://www.linuxfromscratch.org/pipermail/lfs-dev/2009-December/063355.html>
There’s great info in both the hint and the e-mail. For example, I
didn’t realize I could use grub-setup to see where and how grub
populates directories when it’s “installed” as a boot loader. This
is currently important to me while I’m investigating the works of
grub-2.02~beta2.
I have some questions about what you did with grub.cfg in the
e-mail.
1. Although it’s commented, why use
“gfxmode=“1024x768;800x600;640x480”" and not gfxmode=auto? I
remember another example of grub.cfg you supplied in a thread that
also had gfxmode set to a specific value. Is this a preference of
yours? Is it specific to your hardware? Just found what you wrote
recently. It’s essentially the same as in the e-mail referenced
here.
It's been quite a while. I don't really recall, but I suspect it was
because the resolution of the .tga file was 1024x768. OTOH, it may have
been since the auto mode wasn't supported at the time.
2. You have:
if loadfont /grub/unifont.pf2 ; then loadfont /grub/unifont.pf2 set
gfxmode="800x600;640x480" insmod gfxterm insmod vbe insmod tga fi
There’s no “else” here. ARCH uses a similar set of statements.
What’s the decision for grub to make?
Again, I don't recall. That exact structure may not be needed any more.
It may not have been needed then either. Remember that GRUB is
actually a cut down operating system in itself. It has to rely on
hardware to do it's thing and not all hardware plays nice.
Additionally, you have:
terminal_output gfxterm if terminal_output gfxterm ; then true ;
else terminal gfxterm fi
Unless it’s a situation of it “has to be that way in grub,” why not
just have:
terminal_output gfxterm terminal gfxterm
Try it and see.
Of course if you use grub-mkconfig to generate grub.cfg, there are
scads of “if-then-fi” trees that just seem that they could be
replaced by two or three simple statements.
That's why I prefer a direct edit instead of grub-mkconfig. It never
seems to do the right thing for me.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style