From 16ba919aeabf0069ab47cb89f0eebabd59e1a3db Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Sun, 30 Oct 2011 19:24:05 -0700 Subject: [PATCH] use rsync so we can exclude the work_dir --- tools/build_libvirt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build_libvirt.sh b/tools/build_libvirt.sh index 60e6cae..d89f40d 100755 --- a/tools/build_libvirt.sh +++ b/tools/build_libvirt.sh @@ -275,7 +275,7 @@ EOF # User configuration for the instance chroot $ROOTFS groupadd libvirtd || true 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 "stack:pass" | chroot $ROOTFS chpasswd echo "stack ALL=(ALL) NOPASSWD: ALL" >> $ROOTFS/etc/sudoers