diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2015-07-31 09:14:59 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-01 22:24:07 +0100 |
commit | 445c49ce5007eb0c0aa14680c41b79e7764d8882 (patch) | |
tree | 22dd93be681406b828e85e6bb1439e3de6f1320a | |
parent | e4a4c9b1ac246ebb70b2763c61ca27b8cb9749e0 (diff) | |
download | poky-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>
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install-efi.sh | 5 |
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 |
56 | done | 56 | done |
57 | 57 | ||
58 | if [ -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 | ||
61 | fi | ||
62 | |||
58 | TARGET_DEVICE_NAME="" | 63 | TARGET_DEVICE_NAME="" |
59 | for hdname in $hdnamelist; do | 64 | for hdname in $hdnamelist; do |
60 | # Display found hard drives and their basic info | 65 | # Display found hard drives and their basic info |