Comment 21 for bug 26058

Revision history for this message
adrian15 (adrian15) wrote :

>To solve this, I did not use grub-install and did not remove the stage1.5 files as described above. Instead, I >started grub (from a rescue disk) and did this:
>
> grub> install /boot/grub/stage1 (hd1) /boot/grub/stage2 p /boot/grub/menu.lst
>
>This makes stage1 go directly to the stage2 files. "install" is a lower-level command than "setup"; "setup" will use >the stage1.5 files if it can find them.
>
>I'd have to redo this if grub is updated. I'd like to have grub-install do this automatically, perhaps with a new >option. But there needs to be someplace to record that skipping stage1.5 is in effect. I'm not sure where this >should be recorded for the benefit of grub-install.

So that means that grub-install would need to read some other file maybe /etc/default/grub-install to know if it has to ignore stage1_5 or not. Then I add a --ignore-stage1_5 option to setup command and that's it.

I think that /etc/default/grub-install should be sourced from grub-install at its first line and that would be fine.

Do you have any more ideas till I actually code this, well, finish coding it?