mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-13 16:06:59 +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() {
|
write_packages() {
|
||||||
local profile="${BUILD_DIR}/configroot/etc/portage/profile"
|
local profile="${BUILD_DIR}/configroot/etc/portage/profile"
|
||||||
info "Writing ${2##*/}"
|
info "Writing ${2##*/}"
|
||||||
ROOT="$1" equery-$BOARD --no-color \
|
ROOT="$1" PORTAGE_CONFIGROOT="${BUILD_DIR}"/configroot \
|
||||||
list '*' --format '$cpv::$repo' \
|
equery --no-color list '*' --format '$cpv::$repo' > "$2"
|
||||||
> "$2"
|
|
||||||
if [[ -f "${profile}/package.provided" ]]; then
|
if [[ -f "${profile}/package.provided" ]]; then
|
||||||
cat "${profile}/package.provided" >> "$2"
|
cat "${profile}/package.provided" >> "$2"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user