Skip to content

Commit

Permalink
usbgen: zpool destroy can fail with pool busy
Browse files Browse the repository at this point in the history
  • Loading branch information
tsoome authored and Alexander Pyhalov committed Apr 13, 2018
1 parent 329728c commit a9d099d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/src/cmd/install-tools/usbgen
Expand Up @@ -338,7 +338,7 @@ pdev="${devs/p0/}"
# create GPT partitioning with system, boot and root
#
zpool create -B -o bootsize=34M usbgen-$$ $pdev
zpool destroy usbgen-$$
until zpool destroy usbgen-$$; do sleep 1; done

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

0 comments on commit a9d099d

Please sign in to comment.