diff options
| author | Alejandro Hernandez Samaniego <alejandro@enedino.org> | 2022-09-08 18:06:55 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-16 17:53:23 +0100 |
| commit | 26dbc1f641a432a6a7f497a3d31ccee933bbb85c (patch) | |
| tree | d09099414d03fa49f3a8f24bc6bc2d813a35e237 | |
| parent | 2386037b334824398f817f8fdc704f8f61c4b481 (diff) | |
| download | poky-26dbc1f641a432a6a7f497a3d31ccee933bbb85c.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
(From OE-Core rev: e713e118b46aa0c8a5015b915a93718b7aa20a74)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -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) | |||
| 384 | 384 | ||
| 385 | 385 | ||
| 386 | def image_list_installed_packages(d, rootfs_dir=None): | 386 | def image_list_installed_packages(d, rootfs_dir=None): |
| 387 | # Theres no rootfs for baremetal images | ||
| 388 | if bb.data.inherits_class('baremetal-image', d): | ||
| 389 | return "" | ||
| 390 | |||
| 387 | if not rootfs_dir: | 391 | if not rootfs_dir: |
| 388 | rootfs_dir = d.getVar('IMAGE_ROOTFS') | 392 | rootfs_dir = d.getVar('IMAGE_ROOTFS') |
| 389 | 393 | ||
