Matthew Burgess wrote:
> On Wed, 28 Oct 2009 14:21:24 -0500, Bruce Dubbs <bruce.du...@gmail.com> wrote:
> 
>> I'm thinking about moving grub back to Chapter 6 and then changing the
>> grub section in Chapter 8 to "Setting up the boot loader" to discuss actually
>> installing grub into /boot and the MBR.
>>
>> My thought is that the importance and complexity of setting up the system
>> to boot warrants its own section.
> 
> I think this approach is sensible, Bruce.  Ideally, I like to see all packages
> built, installed and configured within chapter 6, and thinking about this some
> more, I reckon we could do without chapter 8 completely.
> 
> I think moving Grub to chapter 6 (complete with configuration instructions)
> and the kernel too would work just as well as it does now.  The /etc/fstab
> page could move to the bootscripts section, as it's obviously of critical
> importance to the boot process.

I don't like the idea of moving the kernel to Chapter 6.  To me, that is the 
culmination of the book.  It should be last and basically have its own chapter.

We can't do the grub/mbr config until after we have a linux kernel.  The 
routines scan the /boot (or specified) directory for valid kernels.  The 
easiest 
way to establish an LFS kernel recognized by grub-install is to name it 
vmlinux-something in section 8.3.1. I'll need to change the line

   cp -v arch/x86/boot/bzImage /boot/lfskernel-2.6.30.5

to something like:

   cp -v arch/x86/boot/bzImage /boot/vmlinux-2.6.30.5-lfs65

Then in the next section, the commands will be

grub-install --grub-setup=/bin/true /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
grub-setup

with appropriate explanation.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to