From b244ef34d581f14ed8889c61ef5cd2fa06e8f5fa Mon Sep 17 00:00:00 2001 From: Todd Willey Date: Thu, 3 Nov 2011 18:19:21 -0400 Subject: [PATCH] Use $DEST for volume backing file. --- stack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index 976872a..32b4539 100755 --- a/stack.sh +++ b/stack.sh @@ -778,7 +778,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-vol" ]]; then # By default, the backing file is 2G in size, and is stored in /opt/stack. # if ! sudo vgdisplay | grep -q nova-volumes; then - VOLUME_BACKING_FILE=${VOLUME_BACKING_FILE:-/opt/stack/nova-volumes-backing-file} + VOLUME_BACKING_FILE=${VOLUME_BACKING_FILE:-$DEST/nova-volumes-backing-file} VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-2052M} truncate -s $VOLUME_BACKING_FILE_SIZE $VOLUME_BACKING_FILE DEV=`sudo losetup -f --show $VOLUME_BACKING_FILE`