From 2eb4fdb92bf0be8863dc1ef5d7ca142342f30b37 Mon Sep 17 00:00:00 2001 From: Ethan Lynn Date: Wed, 3 May 2017 16:07:04 +0800 Subject: Don't hard code second disk in asdc_install.sh Some openstack env will reconignized the second disk as 'sdb', so it's better avoid to hard code 'vdb' in asdc_install.sh. Change-Id: I8e7f77931b70c71f3f27061623cc928a96c40f6c Signed-off-by: Ethan Lynn --- boot/asdc_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boot') 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 -- cgit 1.2.3-korg