[coreboot] grub as payload: Where to put the grub.cfg?

Klemens Nanni kl3 at posteo.org
Wed Nov 9 23:41:54 CET 2016

Hey Philipp,

On Wed, Nov 09, 2016 at 10:03:56PM +0100, Philipp Stanner wrote:
>Hi Nico,
>thanks so far.
>Using your own pointer to the HDD serves to purpose of being able to
>change the cfg-file without flashing the ROM, I presume?
>Anyhow using grub you'd have to use the Shell to start an OS from an
>external drive - in an emergency for example, correct?

Both CBFS and boot media configuration may contain arbitrary menu
entries, you're free to write small ones to boot a kernel from your
disk, search for (iso|sys)linux installations on external media such
as USB sticks and much more.

Putting such configuration into your disk's grub.cfg has the advantage
of being flexible since you don't need to reflash your chip every time.
Depending on your menu configuration however, it might be a good idea to
place generic entries such as 'Load MemTest86+', 'Chainload into USB',
etc. into your CBFS as it will allow you to boot automatically/without
manually using GRUB2's shell whether you attached some hard disk or not.

Have a look at [1] as an example for a relatively simple grub.cfg that
can boot most of today's linux distributions automatically incl. live
USB sticks and (fully) encrypted disks.

Best regards,

[1]:	https://notabug.org/vimuser/libreboot/raw/master/resources/grub/config/menuentries/common.cfg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20161109/fa979d98/attachment.asc>

More information about the coreboot mailing list