aboutsummaryrefslogtreecommitdiff
path: root/linaro-ami/create-oe-persistent-ami.sh
blob: 558a67b72fcd1ecbcef1935a3e77d195f7836f46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# This script creates variant of ci-precise-64bit AMI
# with extra persistent EBS volome, intended for usage
# for OpenEmbedeed persistent builds slaves.
#
# If you create new version of ci-precise-64bit, lookup
# (via EC2 web console or otherwise) its latest settings
# and update CI_PRECISE_64BIT_* variables below.
#
# TODO: Implement this in linaro-ami tool.
#

CI_PRECISE_64BIT_ROOT_SNAPSHOT=snap-c4992284
CI_PRECISE_64BIT_KERNEL=aki-825ea7eb

PERSISTENT_VOL_SIZE=100 # in GB

ec2-register -n ci-precise-64bit-persistent-100g \
    --architecture x86_64 \
    --kernel $CI_PRECISE_64BIT_KERNEL \
    -s $CI_PRECISE_64BIT_ROOT_SNAPSHOT \
    -b /dev/sdb=:$PERSISTENT_VOL_SIZE