diff options
author | Andrew McDermott <andrew.mcdermott@linaro.org> | 2014-12-01 18:58:25 +0000 |
---|---|---|
committer | Andrew McDermott <andrew.mcdermott@linaro.org> | 2014-12-01 18:58:25 +0000 |
commit | 023a437c756f2538b3bfe470844f06fb49052b73 (patch) | |
tree | 0bb50f0f6db28b3bfb9f5e3e41752d167fd35efb | |
parent | 3cfc584055c162caabaf62b991564803188c64a3 (diff) |
-rw-r--r-- | expand-image.yaml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/expand-image.yaml b/expand-image.yaml index c6733dd..12a0924 100644 --- a/expand-image.yaml +++ b/expand-image.yaml @@ -6,7 +6,7 @@ metadata: version: 1.0 description: "Expand UEC image" devices: - - kvm + - kvm mustang environment: - lava-test-shell @@ -15,8 +15,7 @@ run: - "set -x" - "id" - 'DEBIAN_FRONTEND=noninteractive apt-get update -o Dpkg::Options::="--force-confnew" --force-yes' - - 'DEBIAN_FRONTEND=noninteractive apt-get install --yes wget libguestfs-tools coreutils eatmydata' - - 'for i in /usr/bin/apt*; do ln -s /usr/bin/eatmydata /usr/local/bin/$(basename $i); done' + - 'DEBIAN_FRONTEND=noninteractive apt-get install --yes wget libguestfs-tools coreutils' - "image=$(basename $LAVA_CLOUD_IMG_URL)" - "new_image=new.img" - "rm -f ${image}*" @@ -24,12 +23,13 @@ run: - "mv $image ${image}.dist" - "qemu-img convert -O qcow2 ${image}.dist ${image}" - "rm -f ${new_image}" - - "truncate -s 3G ${new_image}" + - "truncate -s $SIZE ${new_image}" - "virt-resize --expand /dev/sda1 ${image} ${new_image}" - "qemu-img convert -c -f raw -O qcow2 ${new_image} ${image}" - - "mv $image $(basename $image .img)-3G.img" + - "mv ${image} $(basename $image .img)-$SIZE.img" - "sleep $LAVA_SLEEP_FOR_ACCESS" params: + SIZE: '3G' LAVA_SLEEP_FOR_ACCESS: 3600 LAVA_CLOUD_IMG_URL: 'http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-arm64-disk1.img' |