diff options
author | Alejandro Hernandez Samaniego <alejandro@enedino.org> | 2022-09-08 18:06:55 -0600 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2022-09-09 06:53:16 -1000 |
commit | e713e118b46aa0c8a5015b915a93718b7aa20a74 (patch) | |
tree | 1c3104d8e3e634a68f3e0058c8cd63c66019bf77 /meta/lib | |
parent | 654d3542afa8082ef8ec9c34e3f27bc9f22ba2b4 (diff) | |
download | openembedded-core-contrib-e713e118b46aa0c8a5015b915a93718b7aa20a74.tar.gz |
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
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5a7e13f46083ce3b08aa762238c1e93b7626dda4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/rootfs.py | 4 |
1 files changed, 4 insertions, 0 deletions
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') |