mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
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:
@@ -134,7 +134,7 @@ do
|
|||||||
echo "Mounted filesystems"
|
echo "Mounted filesystems"
|
||||||
mount | grep media
|
mount | grep media
|
||||||
echo "Available block devices"
|
echo "Available block devices"
|
||||||
ls /dev/sd*
|
cat /proc/partitions
|
||||||
fatal "Cannot find $ROOT_IMAGE file in /media/* , dropping to a shell "
|
fatal "Cannot find $ROOT_IMAGE file in /media/* , dropping to a shell "
|
||||||
fi
|
fi
|
||||||
C=$(( C + 1 ))
|
C=$(( C + 1 ))
|
||||||
|
|||||||
Reference in New Issue
Block a user