diff options
author | Paul Vaduva <Paul.Vaduva@enea.com> | 2016-11-24 17:16:59 +0100 |
---|---|---|
committer | Paul Vaduva <Paul.Vaduva@enea.com> | 2016-11-29 13:06:48 +0100 |
commit | 960635ab999122e6da4934f2e826ba394e6a1d53 (patch) | |
tree | 2e770dd0f842eb1f5b297553ee74277f2b5d01f1 /tools | |
parent | c9448f16f0e8c3e050767a32e55875fa93e31f82 (diff) |
arm64: Using wily kernel since the vivid is gone
Change-Id: Iaf355ed4145cfd74240f92238fe5d4a387261984
Signed-off-by: Paul Vaduva <Paul.Vaduva@enea.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/yardstick-img-modify | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tools/yardstick-img-modify b/tools/yardstick-img-modify index 07f10b3ce..7a43e4437 100755 --- a/tools/yardstick-img-modify +++ b/tools/yardstick-img-modify @@ -70,22 +70,22 @@ download() { if [ $YARD_IMG_ARCH = "arm64" ]; then cd /tmp - if [ ! -f /tmp/vivid-server-cloudimg-arm64-kernel-info.txt ]; then - wget http://cloud-images.ubuntu.com/vivid/current/vivid-server-cloudimg-arm64-kernel-info.txt + if [ ! -f /tmp/wily-server-cloudimg-arm64-kernel-info.txt ]; then + wget http://cloud-images.ubuntu.com/wily/current/wily-server-cloudimg-arm64-kernel-info.txt fi - export VIVID_KERNEL_VERSION=$(cut -d$'\t' -f4 vivid-server-cloudimg-arm64-kernel-info.txt) - mkdir -p /tmp/vivid-modules - if [ ! -f "/tmp/vivid-server-cloudimg-arm64.tar.gz" ]; then + export VIVID_KERNEL_VERSION=$(cut -d$'\t' -f4 wily-server-cloudimg-arm64-kernel-info.txt) + mkdir -p /tmp/wily-modules + if [ ! -f "/tmp/wily-server-cloudimg-arm64.tar.gz" ]; then wget $VIVID_IMG_URL fi - if [ ! -f "/tmp/vivid-server-cloudimg-arm64.img" ]; then - tar zxvf vivid-server-cloudimg-arm64.tar.gz vivid-server-cloudimg-arm64.img + if [ ! -f "/tmp/wily-server-cloudimg-arm64.img" ]; then + tar zxvf wily-server-cloudimg-arm64.tar.gz wily-server-cloudimg-arm64.img fi - mkdir -p /mnt/vivid - mount /tmp/vivid-server-cloudimg-arm64.img /mnt/vivid - cp -r /mnt/vivid/lib/modules/$(echo $VIVID_KERNEL_VERSION | cut -d'-' -f3,4,5) /tmp/vivid-modules - umount /mnt/vivid - rm /tmp/vivid-server-cloudimg-arm64.img + mkdir -p /mnt/wily + mount /tmp/wily-server-cloudimg-arm64.img /mnt/wily + cp -r /mnt/wily/lib/modules/$(echo $VIVID_KERNEL_VERSION | cut -d'-' -f3,4,5) /tmp/wily-modules + umount /mnt/wily + rm /tmp/wily-server-cloudimg-arm64.img cd $workspace fi qemu-img convert $filename $raw_imgfile @@ -115,7 +115,7 @@ setup() { mount -t proc none $mountdir/proc if [ $YARD_IMG_ARCH = "arm64" ]; then - cp -r /tmp/vivid-modules/$(echo $VIVID_KERNEL_VERSION | cut -d'-' -f3,4,5) "$mountdir/lib/modules" + cp -r /tmp/wily-modules/$(echo $VIVID_KERNEL_VERSION | cut -d'-' -f3,4,5) "$mountdir/lib/modules" cp $(which "qemu-aarch64-static") "$mountdir/usr/bin" fi cp $cmd $mountdir/$(basename $cmd) @@ -150,7 +150,7 @@ cleanup() { # designed to be idempotent mount | grep $mountdir/proc && umount $mountdir/proc mount | grep $mountdir && umount $mountdir - mount | grep "/mnt/vivid" && umount "/mnt/vivid" + mount | grep "/mnt/wily" && umount "/mnt/wily" if [ -f $raw_imgfile ]; then kpartx -dv $raw_imgfile || true fi |