help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where to find Grub's last version


From: Jordan Uggla
Subject: Re: Where to find Grub's last version
Date: Tue, 17 Apr 2012 20:28:14 -0700

On Tue, Apr 17, 2012 at 9:48 AM, Arbiel Perlacremaz
<address@hidden> wrote:
> Hi
>
> I hope my message won't be in HTML. I set Thunderbird parameters according
> to the request you made some time ago, but the presentation I get on my
> screen looks as if it were HTML. So I'm going to keep my whole text in front
> of the message.
>
> Thank you for you reply, Jordan, however, I'm not quite satisfied with it. I
> said I'm running tests, but these tests concern script I'm writing to have
> Grub behave accordlingly to my needs.
>
> In no way am I a programmer, but only a regular user, and my aim is not to
> test unofficial releases of Grub. I want to keep with official ones.

If you want to use a stable release of grub and have unicode.pf2
stored in /boot/grub/ then I would recommend you make use of
/boot/grub/custom.cfg rather than trying to modify anything in
/etc/grub.d/. Scripts in /etc/grub.d/ may need to be updated in the
future, and you don't want to get out of sync or have to keep rebasing
your changes whenever they are updated. Instead I would copy
unicode.pf2 to /boot/grub/ (this is not something which should be done
by grub-mkconfig, which should write the grub.cfg and have no other
side effects) and add this to /boot/grub/custom.cfg (create the file
if it doesn't already exist):

# This if statement checks for the feature variable $feature_menuentry_id,
# which should equal 'y' for grub 2.0 and any later releases. It's not ideal,
# checking for $feature_2.0_release would be better, but I'm not sure if I have
# that variable name correct.
# None the less, the idea is that if this file code is sourced on a
version of grub
# newer than grub 2.0 then it should do nothing (though it's still probably best
# to remove this code if it's no longer neccessarry).
if [ "$feature_menuentry_id" != y ]; then
  if loadfont "${prefix}/unicode.pf2" ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    terminal_output gfxterm
  fi
fi

## End of custom.cfg

I will admit that I have not had a chance to test this, and as the
comment explains, checking for $feature_menuentry_id is not ideal, but
I hope that it will work and with the time I have I figured you'd
prefer something untested to nothing.

-- 
Jordan Uggla (Jordan_U on irc.freenode.net)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]