Skip to content

Commit a9d099d

Browse files
tsoomepyhalov
authored andcommitted
usbgen: zpool destroy can fail with pool busy
1 parent 329728c commit a9d099d

File tree

1 file changed

+1
-1
lines changed
  • usr/src/cmd/install-tools

1 file changed

+1
-1
lines changed

usr/src/cmd/install-tools/usbgen

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ pdev="${devs/p0/}"
338338
# create GPT partitioning with system, boot and root
339339
#
340340
zpool create -B -o bootsize=34M usbgen-$$ $pdev
341-
zpool destroy usbgen-$$
341+
until zpool destroy usbgen-$$; do sleep 1; done
342342

343343
prtvtoc "${rs2devs}" | nawk '
344344
/^[^\*]/ { r = $1; for(n = 1; n <= NF; n++) vtoc[r,n] = $n }

0 commit comments

Comments
 (0)