Le 22/12/2013 09:02, Cliff McDiarmid a écrit :
> 
> 
>> ----- Original Message -----
>> From: cont...@igor-zivkovic.from.hr
>> Sent: 12/21/13 09:05 PM
>> To: lfs-support@linuxfromscratch.org
>> Subject: Re: [lfs-support] Kernel file not found
>>
>> On 12/21/2013 09:35 PM, Cliff McDiarmid wrote:
>>> Hi
>>>
>>> I've built LFS six times and never had this issue. After rebooting I'm 
>>> getting an error saying 'file /boot/lfskernel-3.12.5 not found'
>>>
>>> My 'grub.cfg' file from the host system(also LFS)reads:
>>>
>>> # Begin /boot/grub/grub.cfg
>>> set default=0
>>> set timeout=20
>>>
>>> set root=(hd0,7)
>>>
>>> menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
>>> linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
>>> }
>>>
>>>
>>>
>>> menuentry "LFS7, Linux 3.12.5-lfs-7.4" {
>>> linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
>>> }
>>>
>>> How is this? Spelling is all correct in /boot. The host 'LFS6' boots fine.
>>
>> You're missing set root=(hd0,6) for in the LFS7 menu entry.
>>
>> -- 
>> Igor Živković
>> http://www.slashtime.net/
>> -- 
>> http://linuxfromscratch.org/mailman/listinfo/lfs-support
>> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
>> Unsubscribe: See the above information page
> 
> Yes thanks that boots the new system okay but leaves lfs6unbootable .  I.e no 
> file found.  There must be some kind of syntax error here somewher.
> 
> Cliff
> 
The "set root" instructions should be inside the brace:
menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
set root=(hd0,7)
linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
}

and same for the second one, replacing 7 with 6. Note that the root set by
"set root" does not need to be the same as the "root=" kernel parameter.

For example, you could have all the kernel files on the first partition and
have something like:
set root=(hd0,1)
linux /lfskernel-3.12.1 root=/dev/sda7 ro

(notice that /boot is suppressed in the last line). Then you could mount
/dev/sda1 on /boot with /etc/fstab.

Pierre
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to