The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / doc / create-release.txt
1 # set version to build
2 VER=0.3.2
3
4 # set up the system / install any deps
5 ./bin/system-setup
6
7 bzr init-repo cirros
8 cd cirros
9 bzr branch lp:cirros trunk
10
11 bzr branch -r $VER trunk cirros-$VER
12 cd cirros-$VER
13
14 ./bin/build-release $VER 2>&1 | tee build-$VER.log
15
16 # pull that release content into an existing mirror dir
17 rsync -av --progress $USER@$HOST:/path/to/build-$VER/release $VER
18
19 ## now create simplestreams data ##
20 # to create simplestream data with mirror at $mirror_d
21 ( cd .. && bzr branch lp:simplestreams simplestreams )
22 bzr branch lp:cirros cirros
23
24 ./bin/mirror-dump-sstream-data "$mirror_d" > mdata.txt
25 ../simplestreams/tools/tenv tab2streams mdata.txt cirros-streams.d
26 ../simplestreams/tools/tenv env -u GNUPGHOME   \
27     SS_GPG_BATCH=1 SS_GPG_DEFAULT_KEY=A5DDB840 js2signed cirros-streams.d
28 ##
29
30 # to sign individual things
31 for x in "$out/release/"*; do
32    [ "${x%.asc}" = "$x" ] || continue
33    [ -e "$x.asc" ] && continue
34    gpg --armor --sign --detach-sig "$x"
35 done