More allowed drive types

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
Justin Cormack 2015-12-21 09:50:42 +00:00
parent 6670833de8
commit 9276dc01fd

View File

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