mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-06 09:21:28 +00:00
better automount failure handling
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user