diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-05-15 15:05:18 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-20 14:52:39 +0100 |
commit | fc5dfad6490d0b3f2529f84ae9dfbd6b00b5c380 (patch) | |
tree | bf7f531d696eb65f5c4dfe560daa7589184150d9 /meta/recipes-core | |
parent | 62ae16c40252f39ba28e072218d67f47b26b3535 (diff) | |
download | openembedded-core-fc5dfad6490d0b3f2529f84ae9dfbd6b00b5c380.tar.gz openembedded-core-fc5dfad6490d0b3f2529f84ae9dfbd6b00b5c380.tar.bz2 openembedded-core-fc5dfad6490d0b3f2529f84ae9dfbd6b00b5c380.zip |
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'.
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/recipes-core')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-live.sh | 2 |
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 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 )) |