mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 04:56:58 +02:00
setup_board: explicitly perform all package moves
For some reason package moves are not handled automatically in the board build roots. Add explicit calls to emaint to update cached binary packages, installed packages, and the world file.
This commit is contained in:
parent
859675b62a
commit
d1ec00c932
@ -89,7 +89,7 @@ generate_all_wrappers() {
|
||||
info "Generating wrapper scripts"
|
||||
|
||||
for wrapper in 'emerge --root-deps' ebuild eclean equery portageq \
|
||||
qcheck qfile qlist; do
|
||||
qcheck qfile qlist emaint; do
|
||||
_generate_wrapper ${wrapper}
|
||||
done
|
||||
|
||||
@ -266,6 +266,12 @@ sudo ln -sfT ${BOARD_ROOT}/usr/lib/debug /usr/lib/debug/${BOARD_ROOT}
|
||||
|
||||
generate_all_wrappers
|
||||
|
||||
# Unclear why this is required but it doesn't happen automatically
|
||||
info "Performing package updates..."
|
||||
${EMAINT_WRAPPER} --fix movebin
|
||||
${EMAINT_WRAPPER} --fix moveinst
|
||||
${EMAINT_WRAPPER} --fix world
|
||||
|
||||
if [[ ${FLAGS_regen_configs} -eq ${FLAGS_FALSE} ]]; then
|
||||
EMERGE_FLAGS="--select --quiet --root-deps=rdeps"
|
||||
if [[ "${FLAGS_jobs}" -ne -1 ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user