Andrew Benton wrote: > On 30/06/10 19:33, Stuart Stegall wrote: >> Seems like it should be the simplest way possible. Personally I don't >> like the grub-mkconfig - has failed to work for me a few times, and I >> believe it does that due to my host system. >> > grub-mkconfig has never worked for me as I use btrfs for my root partition > >> Seems like a much more simple approach of: >> >> # cat<<EOF> /boot/grub/grub.cfg >> set timeout=10 >> set default=0 >> menuentry "LFS x.x" { >> set root=(hd0,1) >> linux /vmlinuz root=/dev/sda2 >> } >> EOF >> >> Would be better. >> > I agree. I've always written grub.cfg by hand from examples found with > google.
I understand your thought, but I think it better for the book to explain what is going on in a way similar to more traditional distros. I personally generate grub.cfg once and then edit from then on. I did some experimenting to get an image to come up in grub and using grub-mkconfig would break that. Really, the only things that need to change are menuentry items. If you set root=(hd0,1) outside of the menuentry, then that degenerates down to one line: menuentry "LFS SVN 20100627, Linux 2.6.34" { linux /linux-2.6.34 root=/dev/sda13 ro } -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page