summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2015-07-31 09:14:59 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-01 22:24:07 +0100
commit445c49ce5007eb0c0aa14680c41b79e7764d8882 (patch)
tree22dd93be681406b828e85e6bb1439e3de6f1320a /meta
parente4a4c9b1ac246ebb70b2763c61ca27b8cb9749e0 (diff)
downloadpoky-445c49ce5007eb0c0aa14680c41b79e7764d8882.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install-efi.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
index f339b30ebe..a3ed74b989 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
@@ -55,6 +55,11 @@ for device in `ls /sys/block/`; do
55 esac 55 esac
56done 56done
57 57
58if [ -z "${hdnamelist}" ]; then
59 echo "You need another device (besides the live device /dev/${live_dev_name}) to install the image. Installation aborted."
60 exit 1
61fi
62
58TARGET_DEVICE_NAME="" 63TARGET_DEVICE_NAME=""
59for hdname in $hdnamelist; do 64for hdname in $hdnamelist; do
60 # Display found hard drives and their basic info 65 # Display found hard drives and their basic info