summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-05-15 15:05:18 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-20 14:53:12 +0100
commit77b4b25c360aaa311a481786ae32e06a2b29feb1 (patch)
tree05be08ad9e61ef1aff41ce107ed50d6a11e6ddf4 /meta
parent1899511918cb08698377ffe09a021fc234ddaf98 (diff)
downloadpoky-77b4b25c360aaa311a481786ae32e06a2b29feb1.tar.gz
init-live.sh: list block devices correctly
Instead of using 'ls /dev/sd*' command to list block devices, we should rather use 'cat /proc/partitions'. (From OE-Core rev: fc5dfad6490d0b3f2529f84ae9dfbd6b00b5c380) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-live.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index 9e53a25a51..0bc38b776e 100644
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -134,7 +134,7 @@ do
134 echo "Mounted filesystems" 134 echo "Mounted filesystems"
135 mount | grep media 135 mount | grep media
136 echo "Available block devices" 136 echo "Available block devices"
137 ls /dev/sd* 137 cat /proc/partitions
138 fatal "Cannot find $ROOT_IMAGE file in /media/* , dropping to a shell " 138 fatal "Cannot find $ROOT_IMAGE file in /media/* , dropping to a shell "
139 fi 139 fi
140 C=$(( C + 1 )) 140 C=$(( C + 1 ))