| ... | ... |
@@ -19,9 +19,6 @@ set -o xtrace |
| 19 | 19 |
TOOLS_DIR=$(cd $(dirname "$0") && pwd) |
| 20 | 20 |
TOP_DIR=$TOOLS_DIR/.. |
| 21 | 21 |
|
| 22 |
-# Configure the root password of the vm |
|
| 23 |
-ROOT_PASSWORD=${ROOT_PASSWORD:-password}
|
|
| 24 |
- |
|
| 25 | 22 |
# Where to store files and instances |
| 26 | 23 |
KVMSTACK_DIR=${KVMSTACK_DIR:-/opt/kvmstack}
|
| 27 | 24 |
|
| ... | ... |
@@ -44,6 +41,10 @@ fi |
| 44 | 44 |
# Source params |
| 45 | 45 |
source ./stackrc |
| 46 | 46 |
|
| 47 |
+# Configure the root password of the vm to be the same as ``ADMIN_PASSWORD`` |
|
| 48 |
+ROOT_PASSWORD=${ADMIN_PASSWORD:-password}
|
|
| 49 |
+ |
|
| 50 |
+ |
|
| 47 | 51 |
# Base image (natty by default) |
| 48 | 52 |
DIST_NAME=${DIST_NAME:-natty}
|
| 49 | 53 |
IMAGE_FNAME=$DIST_NAME.raw |
| ... | ... |
@@ -260,7 +261,7 @@ iface eth0 inet static |
| 260 | 260 |
EOF |
| 261 | 261 |
|
| 262 | 262 |
# User configuration for the instance |
| 263 |
-chroot $ROOTFS groupadd libvirtd |
|
| 263 |
+chroot $ROOTFS groupadd libvirtd || true |
|
| 264 | 264 |
chroot $ROOTFS useradd stack -s /bin/bash -d $DEST -G libvirtd |
| 265 | 265 |
cp -pr $TOOLS_DIR/.. $ROOTFS/$DEST/devstack |
| 266 | 266 |
echo "root:$ROOT_PASSWORD" | chroot $ROOTFS chpasswd |