Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] [sm-discuss] Grub2 questions.

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Javier Vasquez <j.e.vasquez.v AT gmail.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] [sm-discuss] Grub2 questions.
  • Date: Sun, 1 Nov 2009 14:44:12 -0600

On 10/30/09, Javier Vasquez <j.e.vasquez.v AT gmail.com> wrote:
> On 10/29/09, Arjan Bouter <abouter AT sourcemage.org> wrote:
>> Op donderdag 29-10-2009 om 13:44 uur [tijdzone -0600], schreef Javier
>> Vasquez:
>>> Hi,
>>>
>>> I'm wondering while the test grimoire is still using 1.96 release,
>>> when 1.97 is there. In my own grimoire 1.97 is working nice.

Still pending, :-)

>>>
>>> The other thing is that gub2 comes with gfxterm:
>>>
>>> http://grub.enbug.org/gfxterm
>>>
>>> Other distributions like archlinux and debian install along with grub2
>>> the following:
>>>
>>> /usr/share/grub/ascii.pf2
>>> /usr/share/grub/unifont.pf2
>>>

OK, this seems to do the magic:

http://en.gentoo-wiki.com/wiki/Grub2

There I got what seem the required sources:

http://unifoundry.com/unifont-5.1.20080820.bdf.gz
http://unifoundry.com/unifont-5.1.20080820.pcf.gz

Although the versions are a bit old, I guess they keep being the ones, :-)

And then the rest, is just using grub-mkfont:

grub-mkfont --output=unifont.pf2 unifont.bdf
grub-mkfont --output=ascii.pf2 --range=0x0-0x7f unifont.bdf

But even better, by looking at Makefile.in, and how grub2
automatically generates the *.pf2 if the unifont.bdf is found, then
what the make uses to generate *.pf2 is:

grub-mkfont --output=unifont.pf2 unifont.bdf
grub-mkfont --output=ascii.pf2
--range=0x0-0x7f,0x2190-0x2193,0x2501-0x251B unifont.bdf

However that's apparently not necessary if the *.bdf is there, so no
need to manually convert them.

If the bdf file is placed into /usr/share/fonts/unifont, then a sed
substitution for the configure file is required, so that:

/usr/src/unifont.bdf

Gets substituted by:

/usr/share/fonts/unifont/unifont.bdf

So I think a unifont spell can be generated to download unifont and
place it into /usr/share/fonts/unifont, then grub2 should depend upon
unifont and sed, and that's it. That'll do the trick I guess.

I'll create a personal spell for unifont and modify my 1.97 grub2
spell so that the sed substitution take place, and when ready I'll
share it...

Thanks,

--
Javier.



  • Re: [SM-Discuss] [sm-discuss] Grub2 questions., Javier Vasquez, 11/01/2009

Archive powered by MHonArc 2.6.24.

Top of Page