Merge "ceph plugin installation: umount correct device if it existed."

This commit is contained in:
Zuul 2018-02-27 09:16:25 +00:00 committed by Gerrit Code Review
commit a30f89b417

View File

@ -717,7 +717,7 @@ function create_disk {
# Create a loopback disk and format it to XFS.
if [[ -e ${disk_image} ]]; then
if egrep -q ${storage_data_dir} /proc/mounts; then
sudo umount ${storage_data_dir}/drives/sdb1
sudo umount ${storage_data_dir}
sudo rm -f ${disk_image}
fi
fi