]> code.ossystems Code Review - openembedded-core.git/commit
init-install-efi: fix script for eMMC installation
authorNg, Mei Yeen <mei.yeen.ng@intel.com>
Thu, 26 Nov 2015 03:30:50 +0000 (11:30 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Dec 2015 21:31:03 +0000 (21:31 +0000)
commita7d081c3db776c8b0734942df6bf96f811f15bd3
tree672d5b4a76e362ad29a390e57352012a44989a36
parentfd5fa06fe45ca1fdf20df4198ae323967244af5b
init-install-efi: fix script for eMMC installation

Running the install option from bootloader to install image to eMMC will fail
with error:
Formatting /dev/mmcblk01 to vfat...
mkfs.fat 3.0.28 (2015-05-16)
/dev/mmcblk01: No such file or directory

This issue impacts both grub and gummiboot install option to eMMC device.
The installation failure is due to the following:
[1] Unable to partition eMMC as the partition prefix 'p' is not appended
The condition checking failed with the additional /dev/ appended with
the target device name.
[2] The partition uuid for boot, root and swap partition is not captured
for eMMC

This fix updated the condition checking and changed the variables to
reference the boot, root and swap partitions for UUID.

[YOCTO #8710]
Signed-off-by: Ng, Mei Yeen <mei.yeen.ng@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/initrdscripts/files/init-install-efi.sh