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-09 16:19:39 +0100 |
| commit | a86f9ec0d783cec327ea18d523eb5a12b2d71955 (patch) | |
| tree | 93f1ad64f189d3c5aa1f81225bf106636da8d8f2 /meta/lib | |
| parent | dfa8b896c64182fbf7c22eef4ae7e1948f5279c4 (diff) | |
| download | poky-a86f9ec0d783cec327ea18d523eb5a12b2d71955.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: 5a7e13f46083ce3b08aa762238c1e93b7626dda4)
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>
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 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) | |||
| 386 | 386 | ||
| 387 | 387 | ||
| 388 | def image_list_installed_packages(d, rootfs_dir=None): | 388 | def image_list_installed_packages(d, rootfs_dir=None): |
| 389 | # Theres no rootfs for baremetal images | ||
| 390 | if bb.data.inherits_class('baremetal-image', d): | ||
| 391 | return "" | ||
| 392 | |||
| 389 | if not rootfs_dir: | 393 | if not rootfs_dir: |
| 390 | rootfs_dir = d.getVar('IMAGE_ROOTFS') | 394 | rootfs_dir = d.getVar('IMAGE_ROOTFS') |
| 391 | 395 | ||
