tripleo-ansible/playbooks/files/cleanup_loop_devices.sh
Julia Kreger e6c139275c ANSUPDATE-3 Correct cinder cleanup
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
2014-10-29 09:11:59 -04:00

7 lines
112 B
Bash

#!/bin/bash
set -eux
for loopdevice in `losetup -a| cut -d ':' -f 1`; do
losetup --detach $loopdevice
done