Message ID | 20220909000655.1512857-1-alejandro@enedino.org |
---|---|
State | Accepted, archived |
Commit | 5a7e13f46083ce3b08aa762238c1e93b7626dda4 |
Headers | show |
Series | [v2] rootfs.py: dont try to list installed packages for baremetal images | expand |
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 0b9911e3a6..ad2a4c1441 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -386,6 +386,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')
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 Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> --- meta/lib/oe/rootfs.py | 4 ++++ 1 file changed, 4 insertions(+)