diff options
| -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 |
