aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-05-03 19:04:32 +0000
committerGerrit Code Review <gerrit@onap.org>2017-05-03 19:04:32 +0000
commit6c816f08cc61fdaf58b7b95460f3f0cc2ee503a4 (patch)
tree741f050e244b90845d88c39e61107f39eb1c0f1d
parent2d223894f6b3410518ffab6ca4a406dca16093d5 (diff)
parent2eb4fdb92bf0be8863dc1ef5d7ca142342f30b37 (diff)
Merge "Don't hard code second disk in asdc_install.sh"
-rw-r--r--boot/asdc_install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/asdc_install.sh b/boot/asdc_install.sh
index 5ef620c9..2f07b232 100644
--- a/boot/asdc_install.sh
+++ b/boot/asdc_install.sh
@@ -70,8 +70,8 @@ if [[ $CLOUD_ENV == "rackspace" ]]
then
DISK="xvdb"
else
- DISK="vdb"
- sed -i "s/xvdb/vdb/g" /opt/asdc_ext_volume_partitions.txt
+ DISK=$(ls /dev |grep -e '^.*db$')
+ sed -i "s/xvdb/$DISK/g" /opt/asdc_ext_volume_partitions.txt
fi
sfdisk /dev/$DISK < /opt/asdc_ext_volume_partitions.txt