From 502aff36cdb5baac76caf0f737df9808e5bea168 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Sun, 7 Jun 2015 12:35:05 -0700 Subject: [PATCH] Make get-image.sh bashate compliant Make get-image.sh bashate compliant by creating a file in /tmp for the ifcfg temporary file and using the --upload command instead of the --runcommand operation. Change-Id: I4782140e227105f9aa07fb3967665eaaaeeb0cab Partially-implements: blueprint bashate-gate --- devenv/get-image.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/devenv/get-image.sh b/devenv/get-image.sh index 4247be3920..21166301e7 100755 --- a/devenv/get-image.sh +++ b/devenv/get-image.sh @@ -7,6 +7,7 @@ IMAGE_URL=http://archive.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Im IMAGE=Fedora-Cloud-Base-20141203-21.x86_64.qcow2 TARGET_DIR=/var/lib/libvirt/images TARGET=fedora-21-x86_64 +export LIBGUESTFS_BACKEND=direct if ! [ -f "$IMAGE" ]; then echo "Downloading $IMAGE" @@ -16,18 +17,25 @@ fi echo "Copying $IMAGE to $TARGET" cp "$IMAGE" $TARGET_DIR/$TARGET -virt-customize \ - --add $TARGET_DIR/$TARGET \ - --run-command "cat > /etc/sysconfig/network-scripts/ifcfg-eth1 < $TMPFILE <