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>
This commit is contained in:
Chen Qi
2014-05-15 15:05:18 +08:00
committed by Richard Purdie
parent 1899511918
commit 77b4b25c36

View File

@@ -134,7 +134,7 @@ do
echo "Mounted filesystems"
mount | grep media
echo "Available block devices"
ls /dev/sd*
cat /proc/partitions
fatal "Cannot find $ROOT_IMAGE file in /media/* , dropping to a shell "
fi
C=$(( C + 1 ))