mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 09:39:08 +00:00
better automount failure handling
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
parent
a7943a360c
commit
9b76605c24
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user