aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-core/initrdscripts/files/0005-init-install-efi.sh-correctly-handle-mmc-device-chec.patch
blob: 5bbeb1179e637b8011b24e4f68d2701e129fbbe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 89082478d7d1d9c3fb8796b7ee32dae226c8915c Mon Sep 17 00:00:00 2001
From: Awais Belal <awais_belal@mentor.com>
Date: Wed, 3 Feb 2016 17:09:17 +0500
Subject: [PATCH] init-install-efi.sh: correctly handle mmc device check

The cleanup in 68d8f6d2 did not update the mmc device
checking code to generate prefix and other required
bits which makes the installation to fail as it
does not generate correct partition names.
The check is now updated to handle that accordingly.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
---
 init-install-efi.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git init-install-efi.sh init-install-efi.sh
index b00b2c0..4523825 100644
--- init-install-efi.sh
+++ init-install-efi.sh
@@ -144,7 +144,7 @@ swap_start=$((rootfs_end))
 # 2) they are detected asynchronously (need rootwait)
 rootwait=""
 part_prefix=""
-if [ ! "${device#mmcblk}" = "${device}" ]; then
+if [ ! "${device#\/dev\/mmcblk}" = "${device}" ]; then
     part_prefix="p"
     rootwait="rootwait"
 fi
-- 
1.9.1