[OE-core] [PATCH] init-install-efi.sh: Check if an installation device is present

Leonardo Sandoval leonardo.sandoval.gonzalez at linux.intel.com
Mon Aug 3 16:22:31 UTC 2015


This patch does not solve the related bug (#7971) so I will send a V2 soon.


On 07/31/2015 04:14 AM, leonardo.sandoval.gonzalez at linux.intel.com wrote:
> From: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.intel.com>
>
> In case there is no installation device present, give a better
> message to the user and abort installation.
>
> [YOCTO #7971]
>
> Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.intel.com>
> ---
>   meta/recipes-core/initrdscripts/files/init-install-efi.sh | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
> index f339b30..a3ed74b 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
>       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
>



More information about the Openembedded-core mailing list