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:
Leonardo Sandoval
2015-07-31 09:14:59 +00:00
committed by Richard Purdie
parent e4a4c9b1ac
commit 445c49ce50

View File

@@ -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