mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 23:16:58 +02:00
Merge pull request #328 from marineam/pkgs
build_image_util: fix generation of packages.txt
This commit is contained in:
commit
aaf715e77b
@ -147,9 +147,8 @@ write_contents() {
|
||||
write_packages() {
|
||||
local profile="${BUILD_DIR}/configroot/etc/portage/profile"
|
||||
info "Writing ${2##*/}"
|
||||
ROOT="$1" equery-$BOARD --no-color \
|
||||
list '*' --format '$cpv::$repo' \
|
||||
> "$2"
|
||||
ROOT="$1" PORTAGE_CONFIGROOT="${BUILD_DIR}"/configroot \
|
||||
equery --no-color list '*' --format '$cpv::$repo' > "$2"
|
||||
if [[ -f "${profile}/package.provided" ]]; then
|
||||
cat "${profile}/package.provided" >> "$2"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user