From 55ca8c31647cd28d2870cddb8e38ea7316f82205 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Wed, 2 Nov 2011 14:28:41 +0100 Subject: [PATCH] Remove fstab entry and mount it manually. --- stack.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/stack.sh b/stack.sh index ed6daf8..69d48de 100755 --- a/stack.sh +++ b/stack.sh @@ -619,17 +619,10 @@ if [[ "$ENABLED_SERVICES" =~ "swift" ]];then mkfs.xfs -f -i size=1024 ${SWIFT_LOCATION}/swift-disk fi - # Add the mountpoint to fstab - if ! egrep -q "^${SWIFT_LOCATION}/swift-disk" /etc/fstab;then - echo "# Added by devstack" | sudo tee -a /etc/fstab - echo "${SWIFT_LOCATION}/swift-disk ${s} xfs loop,noatime,nodiratime,nobarrier,logbufs=8 0 0" | \ - sudo tee -a /etc/fstab - fi - # Create and mount drives. mkdir -p ${s} if ! egrep -q "$s" /proc/mounts;then - sudo mount ${s} + sudo mount -t xfs -o loop,noatime,nodiratime,nobarrier,logbufs=8 ${s} fi for x in {1..4}; do sudo ln -sf $s/$x ${SWIFT_LOCATION}/$x; done