From 38a23d901aa1fd55dbe0d57718124c00d4f658cb Mon Sep 17 00:00:00 2001 From: liumk Date: Wed, 13 Dec 2017 15:09:02 +0800 Subject: [PATCH] ceph plugin installation: umount correct device if it existed. The loopback device is created for ceph osd. If the directory ${storage_data_dir} has been mounted when create disk, we should umount ${storage_data_dir} instead of ${storage_data_dir}/drives/sdb1. Change-Id: Ie9fe81c820c485dab9f049cf5a81c02424925728 Closes-Bug: #1689089 --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 20b83b3cd0..ee35723745 100644 --- a/functions +++ b/functions @@ -712,7 +712,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