On Mon, 2013-04-08 at 16:50 -0500, Bruce Dubbs wrote:
*snip*
>
> Every distro wants to do their own thing. Most will automatically
> change from what you have to their custom eye candy.
>
> You really have a couple of choices. One choice is to install grub2 per
> the LFS instructions. Then edit the /boot/grub/grub.cfg file to
> manually add menuentries for any other desired entries. This bypasses
> the eye candy and shortens up the grub.cfg.
>
> My .cfg only has a few lines before the menuentries:
>
> set default=0
> set timeout=5
> insmod ext2
> set root=(hd0,1)
>
> The menuentries for other distros really only need:
>
> menuentry "Some descriptive title" {
> linux kernel kernel-options
> initrd initrd-image
> }
>
> Note that this is a lot faster too.
>
> Specifying where the kernel and initrd are located depends on your
> setup. If you or a distro have used a separate partition for /boot,
> then it's just /kernel-name. If it's on a partition, then it may be
> something like (hd0,7)/boot/kernel-name
>
> The only drawback to this is if you get a new distro or install an
> update to the kernel in a distro, it will probably try to reinstall grub
> the way it wants to instead of the way you want to.
>
> The other option is to use the distro that controls grub to find your
> LFS kernel and hope it adds it correctly for you. The last time I ran
> grub-mkconfig (which is what the distros do), I had about 48 entries.
> Over 30 of the entries were nonsense. You still need to edit the file
> after that, IMO. The .cfg file name may also change. As you note, they
> name it /boot/grub/grub2.cfg, but it needs to be the one on the
> partition that fedora recognizes as /boot. That's the file that needs
> to be edited if you let them control.
>
> The solution to distros overwriting your grub.cfg is to keep a backup.
>
> -- Bruce
Thanks. I'm about to try a boot, will see how it goes.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page