use rsync so we can exclude the work_dir
This commit is contained in:
parent
319897424c
commit
16ba919aea
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ EOF
|
||||||
# User configuration for the instance
|
# User configuration for the instance
|
||||||
chroot $ROOTFS groupadd libvirtd || true
|
chroot $ROOTFS groupadd libvirtd || true
|
||||||
chroot $ROOTFS useradd stack -s /bin/bash -d $DEST -G libvirtd
|
chroot $ROOTFS useradd stack -s /bin/bash -d $DEST -G libvirtd
|
||||||
cp -pr $TOOLS_DIR/.. $ROOTFS/$DEST/devstack
|
rsync -av --exclude=$WORK_DIR $TOP_DIR $ROOTFS/$DEST/devstack
|
||||||
echo "root:$ROOT_PASSWORD" | chroot $ROOTFS chpasswd
|
echo "root:$ROOT_PASSWORD" | chroot $ROOTFS chpasswd
|
||||||
echo "stack:pass" | chroot $ROOTFS chpasswd
|
echo "stack:pass" | chroot $ROOTFS chpasswd
|
||||||
echo "stack ALL=(ALL) NOPASSWD: ALL" >> $ROOTFS/etc/sudoers
|
echo "stack ALL=(ALL) NOPASSWD: ALL" >> $ROOTFS/etc/sudoers
|
||||||
|
|
Loading…
Reference in a new issue