~cloudware/vmbuilder/jenkins_kvm-fginther

« back to all changes in this revision

Viewing changes to templates/img-maasv3.tmpl

  • Committer: Francis Ginther
  • Date: 2018-07-23 15:23:11 UTC
  • mfrom: (802.1.2 maas-trusty-ppc64)
  • Revision ID: francis.ginther@canonical.com-20180723152311-sju79e3uvwzn0hm7
Use /dev/vdb as the tar output device for maasv3 [a=fginther] [r=rcj,daniel-thewatkins]

MP: https://code.launchpad.net/~cloudware/vmbuilder/jenkins_kvm-fginther/+merge/350577

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
    [ $# -eq 0 ] || error "$@";
9
9
    echo "Failed" > /tmp/failed;
10
10
    TAR_DEVICE=/dev/vdb
11
 
    if [[ "$(uname -p)" =~ "ppc64" ]]; then
12
 
        TAR_DEVICE=/dev/vdc
13
 
    fi
14
11
    tar -C /tmp -cvf ${TAR_DEVICE} failed build.log;
15
12
    shutdown -P now;
16
13
    exit 1;
79
76
 
80
77
done
81
78
 
82
 
# KVM running on our ppc64el host attaches devices in a different order
83
 
# compared to the other hosts
84
79
TAR_DEVICE=/dev/vdb
85
 
if [[ "$(uname -p)" =~ "ppc64" ]]; then
86
 
    TAR_DEVICE=/dev/vdc
87
 
fi
88
80
 
89
81
# Finish the work
90
82
echo "Taring up artifacts to ${TAR_DEVICE}!"