summaryrefslogtreecommitdiffstats
path: root/images/enea-nfv-access-host-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'images/enea-nfv-access-host-common.inc')
-rw-r--r--images/enea-nfv-access-host-common.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/images/enea-nfv-access-host-common.inc b/images/enea-nfv-access-host-common.inc
index 83d7bd0..5e071ef 100644
--- a/images/enea-nfv-access-host-common.inc
+++ b/images/enea-nfv-access-host-common.inc
@@ -26,3 +26,15 @@ python __anonymous() {
26 if bb.utils.contains('DISTRO_FEATURES', 'sota', True, False, d): 26 if bb.utils.contains('DISTRO_FEATURES', 'sota', True, False, d):
27 d.appendVarFlag("do_bootimg", "depends", " %s:do_image_otaimg" % d.getVar("IMAGE_BASENAME", True)) 27 d.appendVarFlag("do_bootimg", "depends", " %s:do_image_otaimg" % d.getVar("IMAGE_BASENAME", True))
28} 28}
29
30# Append OSTree specific parameters to the kernel command line before creating the live image
31python do_bootimg_prepend () {
32 if bb.utils.contains('DISTRO_FEATURES', 'sota', True, False, d):
33 ostree_osname = d.getVar('OSTREE_OSNAME')
34 checksum = bb.utils.sha256_file(d.getVar('DEPLOY_DIR_IMAGE') + "/" + d.getVar('OSTREE_KERNEL'))
35
36 # The boot tree is identified through a sha256 checksum over the kernel binary
37 ostree_params = " ostree=/ostree/boot.1/" + ostree_osname + "/" + checksum + "/0"
38
39 d.setVar("APPEND", d.getVar("APPEND") + ostree_params)
40}