diff options
author | Marco Platania <platania@research.att.com> | 2017-05-03 19:04:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-05-03 19:04:32 +0000 |
commit | 6c816f08cc61fdaf58b7b95460f3f0cc2ee503a4 (patch) | |
tree | 741f050e244b90845d88c39e61107f39eb1c0f1d | |
parent | 2d223894f6b3410518ffab6ca4a406dca16093d5 (diff) | |
parent | 2eb4fdb92bf0be8863dc1ef5d7ca142342f30b37 (diff) |
Merge "Don't hard code second disk in asdc_install.sh"
-rw-r--r-- | boot/asdc_install.sh | 4 |
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 |