* Import functions for git_clone (allows RECLONE for xen plugins)
* Fix a potential xvas path issue
* Tweaks to docs
Change-Id: I34f5c57a53884dfe944f3b0eb8896c57e348e389
| ... | ... |
@@ -10,7 +10,10 @@ fi |
| 10 | 10 |
# This directory |
| 11 | 11 |
TOP_DIR=$(cd $(dirname "$0") && pwd) |
| 12 | 12 |
|
| 13 |
-# Source params - override xenrc params in your localrc to suite your taste |
|
| 13 |
+# Source lower level functions |
|
| 14 |
+. $TOP_DIR/../../functions |
|
| 15 |
+ |
|
| 16 |
+# Source params - override xenrc params in your localrc to suit your taste |
|
| 14 | 17 |
source xenrc |
| 15 | 18 |
|
| 16 | 19 |
# Echo commands |
| ... | ... |
@@ -134,17 +137,8 @@ echo 1 > /proc/sys/net/ipv4/ip_forward |
| 134 | 134 |
SR_UUID=`xe sr-list --minimal name-label="Local storage"` |
| 135 | 135 |
xe sr-param-set uuid=$SR_UUID other-config:i18n-key=local-storage |
| 136 | 136 |
|
| 137 |
-# Clean nova if desired |
|
| 138 |
-if [ "$CLEAN" = "1" ]; then |
|
| 139 |
- rm -rf $TOP_DIR/nova |
|
| 140 |
-fi |
|
| 141 |
- |
|
| 142 | 137 |
# Checkout nova |
| 143 |
-if [ ! -d $TOP_DIR/nova ]; then |
|
| 144 |
- env GIT_SSL_NO_VERIFY=true git clone $NOVA_REPO |
|
| 145 |
- cd $TOP_DIR/nova |
|
| 146 |
- git checkout $NOVA_BRANCH |
|
| 147 |
-fi |
|
| 138 |
+git_clone $NOVA_REPO $TOP_DIR/nova $NOVA_BRANCH |
|
| 148 | 139 |
|
| 149 | 140 |
# Install plugins |
| 150 | 141 |
cp -pr $TOP_DIR/nova/plugins/xenserver/xenapi/etc/xapi.d /etc/ |