Quote:
Originally Posted by poisoning
And update with "Update-grub", but this command does not exist in LFS someone can tell me how to make it work in a LFS?
|
That update-grub command, used by many Linux distros, is a script that calls the grub-mkconfig command which does the work. There is no update-grub script in LFS. But if you installed grub-1.99, then you
do have the grub-mkconfig command. Its syntax is very simple and easy to learn in a minute. Basically it's just this...
Code:
su
grub-mkconfig -o /boot/grub/grub.cfg
But the LFS book doesn't bother with grub-mkconfig to create grub.cfg (and recommends against using it). It instead manually creates grub.cfg. If you did that when you installed grub-1.99, then you can manually add that parameter to the kernel command line in your grub.cfg file.
If some other system's GRUB is booting your LFS system, then go there and add it to the kernel command line that boots your LFS system.
If you still want to do all of this the GRUB 2 way, then try using the grub-mkconfig command.