diff mbox series

[meta-integrity,2/2] integrity-image-minimal: Fix IMAGE_INSTALL

Message ID 20240131142858.2666224-2-leon.anavi@konsulko.com
State New
Headers show
Series [meta-integrity,1/2] linux-yocto%.bbappend: Add audit.cfg | expand

Commit Message

Leon Anavi Jan. 31, 2024, 2:28 p.m. UTC
Append to IMAGE_INSTALL rather than directly setting the variable
and does it after inheriting core-image.bbclass because in it
IMAGE_INSTALL is set with a default value CORE_IMAGE_BASE_INSTALL.

Variable CORE_IMAGE_BASE_INSTALL includes CORE_IMAGE_EXTRA_INSTALL
so the change allows adding auditd to CORE_IMAGE_EXTRA_INSTALL as
per the instructions in meta-integrity/README.md.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 .../recipes-core/images/integrity-image-minimal.bb     | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/meta-integrity/recipes-core/images/integrity-image-minimal.bb b/meta-integrity/recipes-core/images/integrity-image-minimal.bb
index 5022170..856249f 100644
--- a/meta-integrity/recipes-core/images/integrity-image-minimal.bb
+++ b/meta-integrity/recipes-core/images/integrity-image-minimal.bb
@@ -2,18 +2,16 @@  DESCRIPTION = "An image as an exmaple for Ima support"
 
 IMAGE_FEATURES += "ssh-server-openssh"
 
+LICENSE = "MIT"
+
+inherit core-image
 
-IMAGE_INSTALL = "\
+IMAGE_INSTALL += "\
     packagegroup-base \
     packagegroup-core-boot \
     packagegroup-ima-evm-utils \
     os-release"
 
-
-LICENSE = "MIT"
-
-inherit core-image
-
 export IMAGE_BASENAME = "integrity-image-minimal"
 
 INHERIT += "ima-evm-rootfs"