
Correcting cinder cleanup to first remove the cinder volumes and then remove the loop devices and not the other way around. Additionally an intentional deactivation of the volume groups has been added. Change-Id: I86a0851d660b4435bba355a13f0ec6e41dd3f1e5
7 lines
112 B
Bash
7 lines
112 B
Bash
#!/bin/bash
|
|
set -eux
|
|
|
|
for loopdevice in `losetup -a| cut -d ':' -f 1`; do
|
|
losetup --detach $loopdevice
|
|
done
|