better automount failure handling

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
Justin Cormack 2016-01-11 16:40:47 +00:00
parent a7943a360c
commit 9b76605c24

View File

@ -11,6 +11,9 @@ start()
ebegin "Configuring host block device"
DEV="$(ls /dev/[sxv]da | head -1 | sed s@/dev/@@)"
[ -z ${DEV} ] && exit 1
DRIVE="/dev/${DEV}"
if fdisk -l ${DRIVE} | grep -q "doesn't contain a valid partition table"