[yocto] Grub installation

Darren Hart dvhart at linux.intel.com
Wed Jun 13 09:01:03 PDT 2012



On 06/11/2012 07:54 AM, Jürgen Messerer wrote:
> Dear Mihai,
> 
> I would expect that grub should be installed in core-image-minimal-qemux86.ext3
> Grub couldn't be found when running the image with runqemu.
> 
>Any other ideas?

This depends entirely on the image type. We do not install grub on the
filesystem images as that won't result in a working system. GRUB must be
installed to the MBR or the VBR of a disk or partition.

The way this currently works is you build a live image (.hddimg) which
uses syslinux and provides an installer. The installer runs a script
which installs grub to the physical boot media.

Improving this process is part of a larger discussion on image types and
image creation tooling.

If the installer method does not work for you, please articulate the
reasons why and what would be a better solution for your use case.

Thanks,

Darren

> 
> 
> 
> -----Original Message-----
> From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Mihai Lindner
> Sent: Montag, 11. Juni 2012 16:23
> To: yocto at yoctoproject.org
> Subject: Re: [yocto] Grub installation
> 
> On 6/11/2012 5:12 PM, Jürgen Messerer wrote:
>> Hi
>>
>>  
>>
>> I have the following problem. I have created with yocto a core-image-minimal for x86 which I could test with qemu.
>>
>>  
>>
>> later I added the following lines to conf/local.conf at the end according to the manual chapter 4.2.4:
>>
>> IMAGE_INSTALL_append = " bash"
>>
>> IMAGE_INSTALL_append = " strace"
>>
>> IMAGE_INSTALL_append = " grub"
>>
>>  
>>
>> Bash and strace were installed correctly.
>>
>> In the case of grub I couldn't find the directory /boot/grub.
>>
>>  
>>
>> /etc/grub.d is installed also the folder /usr/lib/grub
>>
>>  
>>
>> Question 1:
>>
>> Which grub recipe does yocto install from  poky-denzil-7.0/meta/recipes-bsp/grub/
>>
>> I would prefer version 1.99.
>>
>>  
>>
>> Questin 2:
>>
>> Will yocto not install a /boot/grub directory?
>>
>>  
>>
>> I would appreciate any tips and tricks to install grub correctly in the core-image-minimal
>>
>>  
>>
>>  
>>
>> Thanks a lot
>>
>>  
>>
>> Best regards
>>
>>  
>>
>> Juergen
>>
>>
>>
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
> 
> Hello,
> 
> Look for /boot/grub/ in /dev/sda1
> It should be there.
> 

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel





More information about the yocto mailing list