Only detach device if all partitions have been cleaned
Currently there is a bug, that tries to detach the device from a
partition at the first try, without considering that there may be
other partitions and volumes on it. Ensure that the detach is done
properly, and add a test to ensure that this happens correctly.
Reviewed: https:/ /review. openstack. org/576876 /git.openstack. org/cgit/ openstack/ diskimage- builder/ commit/ ?id=64bb87f7b50 0d95c54bae70c30 507687948af963
Committed: https:/
Submitter: Zuul
Branch: master
commit 64bb87f7b500d95 c54bae70c305076 87948af963
Author: Yolanda Robla <email address hidden>
Date: Wed Jun 20 16:25:59 2018 +0200
Only detach device if all partitions have been cleaned
Currently there is a bug, that tries to detach the device from a
partition at the first try, without considering that there may be
other partitions and volumes on it. Ensure that the detach is done
properly, and add a test to ensure that this happens correctly.
Change-Id: I35c5a473509f17 a70270a2cbf5bf5 79faaeb123a
Fixes-Bug: #1777861