summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2018-11-11 13:35:26 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2019-02-14 13:39:17 +0100
commitc7ec887a79dfc2ac33f03d02a43b9e52b7847d10 (patch)
tree13ab5b3ab2059bd4446e8f52c5acc9325ae7bfa7 /classes
parentc53e9091760adac4ef7719935a6046d998a24285 (diff)
downloadmeta-updater-c7ec887a79dfc2ac33f03d02a43b9e52b7847d10.tar.gz
image_types_ostree.bbclass: fix some dependencies issues
- unzip-native:do_populate_sysroot should be depended by do_image_garagesign task instead of by do_image_ostree task. - openssl-native:do_populate_sysroot can be removed since it's being depended by aktualizr-native already. - do_image_garagesign and do_image_garagecheck does not have to depend on aktualizr-native:do_populate_sysroot, that dependency is being added by do_image_ostreepush -> aktualizr-native:do_populate_sysroot. - drop ostreepush dependency from IMAGE_TYPEDEP_garagecheck, that is redundant. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_ostree.bbclass7
1 files changed, 2 insertions, 5 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index 9ecaaa1..e3cfc9d 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -1,9 +1,7 @@
1# OSTree deployment 1# OSTree deployment
2 2
3do_image_ostree[depends] += "ostree-native:do_populate_sysroot \ 3do_image_ostree[depends] += "ostree-native:do_populate_sysroot \
4 openssl-native:do_populate_sysroot \
5 coreutils-native:do_populate_sysroot \ 4 coreutils-native:do_populate_sysroot \
6 unzip-native:do_populate_sysroot \
7 virtual/kernel:do_deploy \ 5 virtual/kernel:do_deploy \
8 ${OSTREE_INITRAMFS_IMAGE}:do_image_complete" 6 ${OSTREE_INITRAMFS_IMAGE}:do_image_complete"
9do_image_ostree[lockfiles] += "${OSTREE_REPO}/ostree.lock" 7do_image_ostree[lockfiles] += "${OSTREE_REPO}/ostree.lock"
@@ -188,7 +186,7 @@ IMAGE_CMD_ostreepush () {
188} 186}
189 187
190IMAGE_TYPEDEP_garagesign = "ostreepush" 188IMAGE_TYPEDEP_garagesign = "ostreepush"
191do_image_garagesign[depends] += "aktualizr-native:do_populate_sysroot" 189do_image_garagesign[depends] += "unzip-native:do_populate_sysroot"
192IMAGE_CMD_garagesign () { 190IMAGE_CMD_garagesign () {
193 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then 191 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then
194 # if credentials are issued by a server that doesn't support offline signing, exit silently 192 # if credentials are issued by a server that doesn't support offline signing, exit silently
@@ -254,8 +252,7 @@ IMAGE_CMD_garagesign () {
254 fi 252 fi
255} 253}
256 254
257IMAGE_TYPEDEP_garagecheck = "ostreepush garagesign" 255IMAGE_TYPEDEP_garagecheck = "garagesign"
258do_image_garagecheck[depends] += "aktualizr-native:do_populate_sysroot"
259IMAGE_CMD_garagecheck () { 256IMAGE_CMD_garagecheck () {
260 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then 257 if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then
261 # if credentials are issued by a server that doesn't support offline signing, exit silently 258 # if credentials are issued by a server that doesn't support offline signing, exit silently