From: Mike Meyer <[EMAIL PROTECTED]>
Subject: Re: default is static
Date: Mon, 7 Aug 2000 09:14:55 -0500 (CDT)
> Given that you've just told me where, I'll look into finding out how
> (any pointers would be greatly appreciated). If someone has another
> suggestion for where, I'd like to hear that as well.
First of all, read the Programmer Reference Manual in the
document. Not all of the parts are up-to-date, but it should still be
useful to start hacking GRUB.
Next, once you have understood the boot sequence of GRUB, see
"stage2/asm.S" and "stage2/start.S". The latter knows where the
*second* sector of stage2 resides on a disk, while the former can
store some information at predefined locations.
Finally, read "stage2/builtins.c" carefully. All of the GRUB
commands are written in the file. Especially, take a look at
"install_func" and "embed_func". You should be able to get some hints
from those commands.
Of course, you should read other parts of GRUB, if possible.
> The argument to "default" should be changed from "active", and a new
> command to save the active entry as the default. Say "savedefault" and
> "default saved"?
That sounds nice to me.
Okuji