Although I don't think this is a right way, I've checked in my hack
to avoid the bug in Linux 2.4. Instead of rewriting grub-install
heavily as I said, I have just modified the implementation of the
commands "setup", "install" and "embed".
Because of my hack and a problem that we tried to forget as if it
had not existed, the installation procedure becomes more
complicated. *sigh*
If you unmount the partition where your GRUB images reside, things
are quite easy, as you can merely run "setup", etc. as before, like
this:
grub> setup (hd0)
But, if you *cannot* unmount the partition, it is necessary to
specify the file name of your Stage2 image under your operating
system, because the grub shell wants to access the file via the OS
service. Although I think it is also possible to detect the file name
in the grub shell automatically, I haven't chosen that way, since that
is very complicated. So you will have to run the command "setup" like
this:
grub> setup --stage2=/boot/grub/stage2 (hd0)
As it seems like a nightmare to describe all caveats I know in
details, I'll rewrite the doc so that the user _shouldn't_ use the
grub shell directly. After all, I feel that using a boot floppy is the
easiest way to install GRUB. Uggh.
Okuji