mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 09:32:13 +02:00
init-install-efi.sh: Check if an installation device is present
In case there is no installation device present, give a better message to the user and abort installation. [YOCTO #7971] (From OE-Core rev: f1596b7169146afcb38db683eb6170a480422d73) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e4a4c9b1ac
commit
445c49ce50
@@ -55,6 +55,11 @@ for device in `ls /sys/block/`; do
|
||||
esac
|
||||
done
|
||||
|
||||
if [ -z "${hdnamelist}" ]; then
|
||||
echo "You need another device (besides the live device /dev/${live_dev_name}) to install the image. Installation aborted."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TARGET_DEVICE_NAME=""
|
||||
for hdname in $hdnamelist; do
|
||||
# Display found hard drives and their basic info
|
||||
|
||||
Reference in New Issue
Block a user