Igor Živković wrote:
> On 12/22/2013 09:02 AM, Cliff McDiarmid wrote:
>>
>>>> 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.
>>
>> 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.
>
> Instead of global set root statement, define it in each menu entry like
> this:
>
> menuentry "LFS6, Linux 3.12.1-lfs-7.2" {
> set root=(hd0,7)
> linux /boot/lfskernel-3.12.1 root=/dev/sda7 ro
> }
>
> menuentry "LFS7, Linux 3.12.5-lfs-7.4" {
> set root=(hd0,6)
> linux /boot/lfskernel-3.12.5 root=/dev/sda6 ro
> }
This type of problem is generally solved by having /boot on a separate
partition. It also gives the advantage of being able to access boot.cfg
from any booted system without a separate mount.
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page