Revision 6a95db10 snf-image-helper/common.sh
b/snf-image-helper/common.sh | ||
---|---|---|
93 | 93 |
} |
94 | 94 |
|
95 | 95 |
cleanup() { |
96 |
# if something fails here, it souldn't call cleanup again...
|
|
96 |
# if something fails here, it shouldn't call cleanup again...
|
|
97 | 97 |
trap - EXIT |
98 | 98 |
|
99 | 99 |
if [ ${#CLEANUP[*]} -gt 0 ]; then |
... | ... | |
106 | 106 |
# synchronous and may return while the partition is still busy. A |
107 | 107 |
# premature attempt to delete partition mappings through kpartx on a |
108 | 108 |
# device that hosts previously mounted ntfs partition may fail with |
109 |
# an `device-mapper: remove ioctl failed: Device or resource busy'
|
|
109 |
# a `device-mapper: remove ioctl failed: Device or resource busy' |
|
110 | 110 |
# error. A sensible workaround for this is to wait for a while and |
111 | 111 |
# then try again. |
112 | 112 |
local cmd=${CLEANUP[$i]} |
Also available in: Unified diff