diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-12-27 16:53:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-12-27 16:53:34 +0000 |
commit | e016aec95fb278ae02f0ac96814182dd6a2f50cd (patch) | |
tree | fe2218eee4b0d943b6e1ebbe7ab1096be4e3730d /mcp/scripts | |
parent | 0892eb16c1785703adfb14a5fdea3eb7201d15b7 (diff) | |
parent | 6b0d21a70be04666fd60a9d4b05d4ad13e192026 (diff) |
Merge "lib.sh: Add delay after `kpartx -av`"
Diffstat (limited to 'mcp/scripts')
-rw-r--r-- | mcp/scripts/lib.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh index 982cc37fd..2e141822f 100644 --- a/mcp/scripts/lib.sh +++ b/mcp/scripts/lib.sh @@ -56,6 +56,7 @@ function mount_image { sudo qemu-nbd --connect="${OPNFV_NBD_DEV}" --aio=native --cache=none \ "${image_dir}/${image}" sudo kpartx -av "${OPNFV_NBD_DEV}" + sleep 5 # /dev/nbdNp1 takes some time to come up # Hardcode partition index to 1, unlikely to change for Ubuntu UCA image if sudo growpart "${OPNFV_NBD_DEV}" 1; then sudo kpartx -u "${OPNFV_NBD_DEV}" |