]> 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)
committerRobert Yang <liezhi.yang@windriver.com>
Tue, 8 Dec 2015 08:18:12 +0000 (00:18 -0800)
commit1be316beb5c2b1e32f11ab8ec5dee68f64defb2d
tree2822d2eea31a3db5fe5dccf5127605a9b57b7ef4
parent7d26b5f7fad5f5200f73e2a2c11874d8ccf34c59
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]
(master rev: a7d081c3db776c8b0734942df6bf96f811f15bd3)

Signed-off-by: Ng, Mei Yeen <mei.yeen.ng@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/recipes-core/initrdscripts/files/init-install-efi.sh