diff options
-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 |