summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorDrew Moseley <drew_moseley@mentor.com>2014-07-30 20:49:30 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-02 09:26:16 +0100
commit7a81bd4c34b40badeb787d0b709ee832a9d1a891 (patch)
treee6bbd856f0cd17dbaa7d4a944eaf36bc1ed65209 /meta/recipes-core
parentfd3d11f2bc01391e3c370eec2e08c014d038fba8 (diff)
downloadpoky-7a81bd4c34b40badeb787d0b709ee832a9d1a891.tar.gz
init-install-efi.sh: Verify /sys based files exist before displaying them
Some mmc cards do not have all the data files in /sys/block populated. Check for existence before displaying the files to avoid erroring out of the install process. (From OE-Core rev: 4abe5563f61a228963e1e442ebc2df9f2d01be80) Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install-efi.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
index fcf21cd2f9..b142ed4915 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
@@ -47,9 +47,14 @@ for hdname in $hdnamelist; do
47 echo -n "VENDOR=" 47 echo -n "VENDOR="
48 cat /sys/block/$hdname/device/vendor 48 cat /sys/block/$hdname/device/vendor
49 fi 49 fi
50 echo -n "MODEL=" 50 if [ -r /sys/block/$hdname/device/model ]; then
51 cat /sys/block/$hdname/device/model 51 echo -n "MODEL="
52 cat /sys/block/$hdname/device/uevent 52 cat /sys/block/$hdname/device/model
53 fi
54 if [ -r /sys/block/$hdname/device/uevent ]; then
55 echo -n "UEVENT="
56 cat /sys/block/$hdname/device/uevent
57 fi
53 echo 58 echo
54 # Get user choice 59 # Get user choice
55 while true; do 60 while true; do