diff options
author | Ming Liu <liu.ming50@gmail.com> | 2018-11-11 13:35:26 +0100 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-02-14 13:39:17 +0100 |
commit | c7ec887a79dfc2ac33f03d02a43b9e52b7847d10 (patch) | |
tree | 13ab5b3ab2059bd4446e8f52c5acc9325ae7bfa7 /classes | |
parent | c53e9091760adac4ef7719935a6046d998a24285 (diff) | |
download | meta-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.bbclass | 7 |
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 | ||
3 | do_image_ostree[depends] += "ostree-native:do_populate_sysroot \ | 3 | do_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" |
9 | do_image_ostree[lockfiles] += "${OSTREE_REPO}/ostree.lock" | 7 | do_image_ostree[lockfiles] += "${OSTREE_REPO}/ostree.lock" |
@@ -188,7 +186,7 @@ IMAGE_CMD_ostreepush () { | |||
188 | } | 186 | } |
189 | 187 | ||
190 | IMAGE_TYPEDEP_garagesign = "ostreepush" | 188 | IMAGE_TYPEDEP_garagesign = "ostreepush" |
191 | do_image_garagesign[depends] += "aktualizr-native:do_populate_sysroot" | 189 | do_image_garagesign[depends] += "unzip-native:do_populate_sysroot" |
192 | IMAGE_CMD_garagesign () { | 190 | IMAGE_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 | ||
257 | IMAGE_TYPEDEP_garagecheck = "ostreepush garagesign" | 255 | IMAGE_TYPEDEP_garagecheck = "garagesign" |
258 | do_image_garagecheck[depends] += "aktualizr-native:do_populate_sysroot" | ||
259 | IMAGE_CMD_garagecheck () { | 256 | IMAGE_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 |