mirror of
https://git.yoctoproject.org/poky
synced 2026-02-13 12:13:02 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
50623fd78c
commit
3ddd99d2c8
@@ -173,7 +173,11 @@ fi
|
||||
|
||||
if [ ! -w "$DEVICE" ]; then
|
||||
usage
|
||||
die "Device $DEVICE does not exist or is not writable"
|
||||
if [ ! -e "${DEVICE}" ] ; then
|
||||
die "Device $DEVICE cannot be found"
|
||||
else
|
||||
die "Device $DEVICE is not writable (need to run under sudo?)"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -e "$HDDIMG" ]; then
|
||||
|
||||
Reference in New Issue
Block a user