]> code.ossystems Code Review - openembedded-core.git/commit
install: Look for grub2 files on the initramfs, not rootfs
authorDarren Hart <dvhart@linux.intel.com>
Thu, 21 Feb 2013 17:28:02 +0000 (09:28 -0800)
committerRoss Burton <ross.burton@intel.com>
Fri, 1 Mar 2013 14:57:48 +0000 (14:57 +0000)
commitd961e42674bf929adfff391c6f3f284a7e7b0d95
tree1122776852cda8fb2ece6ff44ed061141d26f7ae
parentf8d44580e7caf29f1b532c89041469847c36f45f
install: Look for grub2 files on the initramfs, not rootfs

Fixes [YOCTO #3870] atom-pc - cannot boot image on netbook after install

The problem here is that grub2 is installed but a grub 1 menu.lst is
created at install time. At boot, grub2 doesn't find a grub.cfg file and
drops to the grub shell.

This happens because the installer is looking for 40_custom (a grub2
file) on the rootfs, but grub2 isn't installed on the rootfs. It exists
in the initramfs. Patching the installer to look on the initramfs
resolves the problem.

Note that the problem may have occurred if grub2 used to be installed on
the rootfs but was later removed. In any case, the installer is HORRIBLE
and really needs to be completely redesigned as part of the deployment
effort. For now, this should get the live image installer limping along
again.

Tested on a Toshiba NB-305.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: alexandru.c.georgescu@intel.com
Cc: sgw@linux.intel.com
Cc: ross.burton@intel.com
Cc: richard.purdie@intel.com
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/files/init-install.sh
meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb