summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/mkefidisk.sh
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-04-21 14:01:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-27 15:20:38 +0100
commit3ddd99d2c8575e5d7bab8aebc06dcf0e67da2856 (patch)
tree3e7c747de276cb7a44f7eaa30d8ffef2da62a51c /scripts/contrib/mkefidisk.sh
parent50623fd78c962f3f23d49be2ab16ee24035e5fe4 (diff)
downloadpoky-3ddd99d2c8575e5d7bab8aebc06dcf0e67da2856.tar.gz
mkefidisk.sh: be more explicit with device error
* Specify whether the device can't be found or can't be written to * Give a hint to use sudo (From OE-Core rev: 92b58e1c789ee412d936285144e8e549c99ff979) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib/mkefidisk.sh')
-rwxr-xr-xscripts/contrib/mkefidisk.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh
index d6bc965137..55f72b0f54 100755
--- a/scripts/contrib/mkefidisk.sh
+++ b/scripts/contrib/mkefidisk.sh
@@ -173,7 +173,11 @@ fi
173 173
174if [ ! -w "$DEVICE" ]; then 174if [ ! -w "$DEVICE" ]; then
175 usage 175 usage
176 die "Device $DEVICE does not exist or is not writable" 176 if [ ! -e "${DEVICE}" ] ; then
177 die "Device $DEVICE cannot be found"
178 else
179 die "Device $DEVICE is not writable (need to run under sudo?)"
180 fi
177fi 181fi
178 182
179if [ ! -e "$HDDIMG" ]; then 183if [ ! -e "$HDDIMG" ]; then