diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-06-03 03:27:54 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-06-03 03:27:54 +0300 |
commit | 04fa5cb690a30a2fe779a8cbb7a57c136c123d8a (patch) | |
tree | 077292967fd1a5b2635dc543158114f5c9e8ad74 /leg-cloud-image-centos.yaml | |
parent | 2521ed8a7e6b059af2e5da895ca725f1624c482e (diff) |
leg-cloud-image-centos: use images default location
Change-Id: I07e4d1628540aa22256a1e79f8433c173925302c
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'leg-cloud-image-centos.yaml')
-rw-r--r-- | leg-cloud-image-centos.yaml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/leg-cloud-image-centos.yaml b/leg-cloud-image-centos.yaml index a343b83b3f..0ce9445a3f 100644 --- a/leg-cloud-image-centos.yaml +++ b/leg-cloud-image-centos.yaml @@ -28,8 +28,6 @@ set -ex - IMAGE_NAME=centos7-cloud-image.qcow2 - sudo yum install -y virt-install libvirt-daemon libvirt-daemon-driver-qemu libvirt-daemon-driver-storage qemu-kvm sudo systemctl start virtlockd sudo systemctl start libvirtd @@ -64,12 +62,13 @@ %end EOF + IMAGE_NAME=centos7-cloud-image.qcow2 sudo virt-install \ --name ${IMAGE_NAME} \ --initrd-inject kickstart.cfg \ --extra-args "ks=file:/kickstart.cfg" \ --connect=qemu:///system \ - --disk=path=${IMAGE_NAME},size=10,format=qcow2,bus=virtio \ + --disk=path=/var/lib/libvirt/images/${IMAGE_NAME},size=10,format=qcow2,bus=virtio \ --memory 2048 \ --location http://mirror.centos.org/altarch/7/os/aarch64/ \ --noreboot @@ -80,7 +79,7 @@ time python ${HOME}/bin/linaro-cp.py \ --api_version 3 \ --link-latest \ - ${WORKSPACE}/${IMAGE_NAME} snapshots/developer-cloud/centos/cloud-image/${BUILD_NUMBER} + /var/lib/libvirt/images snapshots/developer-cloud/centos/cloud-image/${BUILD_NUMBER} publishers: - email: recipients: 'fathi.boudra@linaro.org marcin.juszkiewicz@linaro.org' |