mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 14:11:07 +02:00
fix(common): Disable parallel_emerge by default for most commands.
I would like to phase out parallel_emerge so disable it for all commands other than build_image which is the only one that shows a noticeable benefit from it (~2 min with --fast, ~3 min with --nofast).
This commit is contained in:
parent
d4166b4998
commit
10025571d9
@ -47,7 +47,7 @@ show_help_if_requested "$@"
|
|||||||
# not needed for the typical developer workflow.
|
# not needed for the typical developer workflow.
|
||||||
DEFINE_integer build_attempt 1 \
|
DEFINE_integer build_attempt 1 \
|
||||||
"The build attempt for this image build."
|
"The build attempt for this image build."
|
||||||
DEFINE_boolean fast "${DEFAULT_FAST}" \
|
DEFINE_boolean fast ${FLAGS_TRUE} \
|
||||||
"Use the parallel_emerge wrapper script."
|
"Use the parallel_emerge wrapper script."
|
||||||
DEFINE_integer jobs "${NUM_JOBS}" \
|
DEFINE_integer jobs "${NUM_JOBS}" \
|
||||||
"How many packages to build in parallel at maximum."
|
"How many packages to build in parallel at maximum."
|
||||||
|
@ -392,8 +392,8 @@ if [[ -f ${GCLIENT_ROOT}/src/scripts/.default_board ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable --fast by default.
|
# Disable --fast in most commands
|
||||||
DEFAULT_FAST=${FLAGS_TRUE}
|
DEFAULT_FAST=${FLAGS_FALSE}
|
||||||
|
|
||||||
# Directory to store built images. Should be set by sourcing script when used.
|
# Directory to store built images. Should be set by sourcing script when used.
|
||||||
BUILD_DIR=
|
BUILD_DIR=
|
||||||
|
@ -113,7 +113,7 @@ fi
|
|||||||
# In first pass, update portage and toolchains. Lagged updates of both
|
# In first pass, update portage and toolchains. Lagged updates of both
|
||||||
# can cause serious issues later.
|
# can cause serious issues later.
|
||||||
info "Updating basic system packages"
|
info "Updating basic system packages"
|
||||||
sudo -E ${EMERGE_CMD} ${EMERGE_FLAGS} \
|
sudo -E ${EMERGE_CMD} --quiet ${EMERGE_FLAGS} \
|
||||||
dev-util/ccache \
|
dev-util/ccache \
|
||||||
sys-apps/portage \
|
sys-apps/portage \
|
||||||
sys-devel/crossdev \
|
sys-devel/crossdev \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user