grub2 and 2015.02-rc2
Hi all
I use BR2_ROOTFS_POST_IMAGE_SCRIPT to generate a disk image after completing a build, and most of the commands work great using the "hosted" versions within the build (ie. dd, parted, mkefs, e2cp etc).
However, when calling "grub-install", it throws back the error
/home/gary/buildroot/buildroot-2015.02-rc2/output/host/usr/sbin/grub-install : line 79: /usr/share/grub/grub-mkconfig_lib: No such file or directory
as it is attempting to access a file in the host's filesystem, and not the "hosted" version.
Is there a simple workaround for this, or am I missing something really obvious?
Thanks in advance,
Gary Partis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150217/ef8681e3/attachment.html>
Dear Gary Partis,
Quoted 2 lines · Gary Partis
Is there a simple workaround for this, or am I missing something really obvious?
Did you follow the grub2 installation procedure described at:
http://git.buildroot.net/buildroot/tree/boot/grub2/Config.in#n14
This text is visible in the help text of the grub2 option in menuconfig/xconfig.
Best regards,
Thomas Petazzoni
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Hi Thomas
Ah - I was hoping that grub2 didn't require root access (loop back device etc), to simply install boot sector code and place some other code elsewhere within image file system.... :-(
Cheers
Gary
-----Original Message-----
From: Thomas Petazzoni [mailto:thomas.petazzoni at free-electrons.com]
Sent: 17 February 2015 13:43
To: Gary Partis
Cc: buildroot at busybox.net
Subject: Re: [Buildroot] grub2 and 2015.02-rc2
Dear Gary Partis,
Quoted 2 lines · Gary Partis
Is there a simple workaround for this, or am I missing something really obvious?
Did you follow the grub2 installation procedure described at:
http://git.buildroot.net/buildroot/tree/boot/grub2/Config.in#n14
This text is visible in the help text of the grub2 option in menuconfig/xconfig.
Best regards,
Thomas Petazzoni
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering http://free-electrons.com