Skip to content

Commit

Permalink
add information about the packages contained in the built sysext
Browse files Browse the repository at this point in the history
  • Loading branch information
krishjainx committed Jul 21, 2023
1 parent 0fb387f commit a4b3c24
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build_library/build_image_util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,18 @@ image_packages_portage() {
ROOT="$1" PORTAGE_CONFIGROOT="${BUILD_DIR}"/configroot \
equery --no-color list --format '$cpv::$repo' '*'
}

# List dependencies for a package runtime dependencies

function package_run_dependencies() (
pkg=${1:?}
ebuild=$(equery-${BOARD} w "${pkg}")
function inherit() { : ; }
. "${ebuild}"
echo ${RDEPEND}
)


# List packages implicitly contained in rootfs, such as in torcx packages or
# initramfs.
image_packages_implicit() {
Expand Down Expand Up @@ -294,6 +306,12 @@ image_packages_implicit() {
[ -z "${FLAGS_torcx_manifest}" ] ||
torcx_manifest::sources_on_disk "${FLAGS_torcx_manifest}" |
while read pkg ; do query_available_package "${pkg}" ; done


# Include source packages of all sysext images installed on disk.
for docker_containerd_package in $(package_run_dependencies docker) $(package_run_dependencies containerd); do
query_available_package ${docker_containerd_package}
done
}

# Generate a list of packages installed in an image.
Expand Down

0 comments on commit a4b3c24

Please sign in to comment.