summaryrefslogtreecommitdiffstats
path: root/classes/image_types_ostree.bbclass
diff options
context:
space:
mode:
authorAnton Gerasimov <anton.gerasimov@here.com>2018-01-26 15:49:19 +0100
committerAnton Gerasimov <anton.gerasimov@here.com>2018-01-26 15:49:19 +0100
commiteb790f96e3a1e06ae7304963de6d82327e993350 (patch)
tree66b7da55f83b00f546f95a1eb0f010bfb8a21d69 /classes/image_types_ostree.bbclass
parentf903f757a91fcc192ece9c9cb58f1ab221b7e65a (diff)
parentb68b4ff5bad6e8ae3462a2a6d98b7bb1be12e48f (diff)
downloadmeta-updater-eb790f96e3a1e06ae7304963de6d82327e993350.tar.gz
Merge branch 'pyro' into rocko
Diffstat (limited to 'classes/image_types_ostree.bbclass')
-rw-r--r--classes/image_types_ostree.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index f350449..5ebed81 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -12,6 +12,8 @@ do_image_ostree[depends] += "ostree-native:do_populate_sysroot \
12export OSTREE_REPO 12export OSTREE_REPO
13export OSTREE_BRANCHNAME 13export OSTREE_BRANCHNAME
14 14
15export GARAGE_TARGET_NAME
16
15RAMDISK_EXT ?= ".ext4.gz" 17RAMDISK_EXT ?= ".ext4.gz"
16RAMDISK_EXT_arm ?= ".ext4.gz.u-boot" 18RAMDISK_EXT_arm ?= ".ext4.gz.u-boot"
17 19
@@ -205,7 +207,7 @@ IMAGE_CMD_garagesign () {
205 push_success=0 207 push_success=0
206 for push_retries in $( seq 3 ); do 208 for push_retries in $( seq 3 ); do
207 garage-sign targets pull --repo tufrepo --home-dir ${GARAGE_SIGN_REPO} 209 garage-sign targets pull --repo tufrepo --home-dir ${GARAGE_SIGN_REPO}
208 garage-sign targets add --repo tufrepo --home-dir ${GARAGE_SIGN_REPO} --name ${OSTREE_BRANCHNAME} --format OSTREE --version ${ostree_target_hash} --length 0 --url "https://example.com/" --sha256 ${ostree_target_hash} --hardwareids ${MACHINE} 210 garage-sign targets add --repo tufrepo --home-dir ${GARAGE_SIGN_REPO} --name ${GARAGE_TARGET_NAME} --format OSTREE --version ${ostree_target_hash} --length 0 --url "https://example.com/" --sha256 ${ostree_target_hash} --hardwareids ${MACHINE}
209 garage-sign targets sign --repo tufrepo --home-dir ${GARAGE_SIGN_REPO} --key-name=targets 211 garage-sign targets sign --repo tufrepo --home-dir ${GARAGE_SIGN_REPO} --key-name=targets
210 errcode=0 212 errcode=0
211 garage-sign targets push --repo tufrepo --home-dir ${GARAGE_SIGN_REPO} || errcode=$? 213 garage-sign targets push --repo tufrepo --home-dir ${GARAGE_SIGN_REPO} || errcode=$?