On Fri, Sep 10, 2010 at 09:46:53AM +0200, lode leroy wrote: > I think it would be helpful if a command existed to install grub from grub, > given a directory /boot/grub/ already present, i.e. Write boot sector+stage1 > to the disk. It may be easy to copy files onto the filesystem, but not-so-easy > to create a working native grub.
grub2 doesn't have a stage1. It creates one after examining the system it is running on to determine which modules have to be used to create the stage1. Of course it also needs to understand how much space there is for this stage1 file, which means understanding filesystems or at least partition layout specifics. Also, should it be generating an efi, or pc-bios, or ieee-* image? With grub1 it was simple. There was one stage1, and a certain set of stage1.5 files (one per supported filesystem) and a stage2. That was it. nothing modular, nothing to assemble. If you take all the modules for grub2, you end up with a 1MB+ stage1 file, which you can't embed in one track. -- Len Sorensen _______________________________________________ Grub-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/grub-devel
