Problem: Cannot boot new LFS.
I have just rebuilt the LFS 6.3
With chroot to $LFS I can run the sanity checks using dummy.c as per section 6.10 Re-adjusting the Toolchain. All ok.
gcc 4.1.1 [not the 4.1.2 in LFS book 6.3]
The Hard drive partitions are as follows:
Filesystem 1K-blocks Used Available Use% Mounted on
99698064 2477316 92074536 3% /
/dev/hda1 101086 16096 79771 17% /boot
tmpfs 960000 0 960000 0% /dev/shm
24789644 1485968 22024088 7% /opt
24821628 176300 23364100 1% /tmp
24789644 1485968 22024088 7% /mnt/lfs
From grub prompt:
grub> find /grub/stage1
Grub is already installed on MBR (hd0) so I didn't run "setup (hd0)"
I just edited the existing grub file. Not sure about this.
In Section 8.4 the grub configuration is set up from LFS without an initrd image.
title LFS 6.3
kernel /opt/boot/lfskernel-188.8.131.52 root=/dev/VolGroup00/LogVol02 pci=nommconf
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
kernel /vmlinuz-2.6.18-8.el5 root=/dev/VolGroup00/LogVol00 pci=nommconf rhgb quiet crashkernel=128M@16M
I tried the above kernel line with and without "/opt" in the boot fails with the following message:
Booting 'LFS 6.3'
Filesystem type is ext2fs, partitiion type 0x83
kernel [/opt]/boot/lfskernel-184.108.40.206 root=/dev/VolGroup00/LogVol02 pci=nommconf
Error 15: File not found
I cannot figure out how to boot to the newly built LFS.
Dose the standalone entry in the grub file "root (hd0,0)" dictate that there must be a kernel at that exact location, i.e. not a sub directory of (hd0,0)= hda1?
If so do I need to copy the new LFS kernel file to the old /boot folder?
Dose the "root=/dev/VolGroup00/LogVol02" effectively chroot to that location?
Dose the boot need an initrd image when booting in with LVM partitions?
How can I create the correct initrd image for 220.127.116.11?
In a nutshell, everything is built, any idea how I can boot it?