metadata: name: block-device-deploy format: "Lava-Test-Shell Test Definition 1.0" description: "Deploys an image to a specific block device" maintainer: - tyler.baker@linaro.org params: DEVICE: /dev/sda1 IMAGE_URL: http://releases.linaro.org/13.12/ubuntu/saucy-images/server/linaro-saucy-server-20131216-586.tar.gz IMAGE_NAME: linaro-saucy-server-20131216-586.tar.gz run: steps: - mkdir tmp - mount "$DEVICE" tmp/ - cd tmp/ - rm -rf * - cat /proc/net/pnp > /etc/resolv.conf - wget "$IMAGE_URL" - tar --strip-components=1 -C . -xf "$IMAGE_NAME" - rm "$IMAGE_NAME" - cd .. - umount tmp/