From 26dbc1f641a432a6a7f497a3d31ccee933bbb85c Mon Sep 17 00:00:00 2001 From: Alejandro Hernandez Samaniego Date: Thu, 8 Sep 2022 18:06:55 -0600 Subject: rootfs.py: dont try to list installed packages for baremetal images Theres not a rootfs for baremetal images, hence we should avoid trying to list rootfs packages for them. This fixes an issue where some classes (e.g. license_image) rely on rootfs functionality when included for baremetal images even if its nonexistent (From OE-Core rev: e713e118b46aa0c8a5015b915a93718b7aa20a74) Signed-off-by: Alejandro Enedino Hernandez Samaniego Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 5a7e13f46083ce3b08aa762238c1e93b7626dda4) Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- meta/lib/oe/rootfs.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/lib') diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 9e6b411fb6..91312f8353 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -384,6 +384,10 @@ def create_rootfs(d, manifest_dir=None, progress_reporter=None, logcatcher=None) def image_list_installed_packages(d, rootfs_dir=None): + # Theres no rootfs for baremetal images + if bb.data.inherits_class('baremetal-image', d): + return "" + if not rootfs_dir: rootfs_dir = d.getVar('IMAGE_ROOTFS') -- cgit v1.2.3-54-g00ecf