mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-22 19:11:35 +01:00
Revert "Use --fast by default in build_image when --jobs is enabled."
See if this fixes the symlink problems we've been running into. This reverts commit 8edffbaec55a404d765d64ee46b532bbc6630b86.
This commit is contained in:
parent
54d8baacc0
commit
fd7403ab89
@ -92,11 +92,6 @@ if [ "${FLAGS_rootfs_size}" -gt "${FLAGS_rootfs_partition_size}" ] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${FLAGS_jobs} -ne -1 ]; then
|
|
||||||
EMERGE_JOBS="--jobs=${FLAGS_jobs}"
|
|
||||||
FLAGS_fast=${FLAGS_TRUE}
|
|
||||||
fi
|
|
||||||
|
|
||||||
EMERGE_BOARD_CMD="emerge-${FLAGS_board}"
|
EMERGE_BOARD_CMD="emerge-${FLAGS_board}"
|
||||||
if [ "${FLAGS_fast}" -eq "${FLAGS_TRUE}" ]; then
|
if [ "${FLAGS_fast}" -eq "${FLAGS_TRUE}" ]; then
|
||||||
echo "Using alternate emerge"
|
echo "Using alternate emerge"
|
||||||
@ -166,6 +161,10 @@ if [[ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ]] ; then
|
|||||||
INSTALL_MASK="${INSTALL_MASK} ${FACTORY_INSTALL_MASK}"
|
INSTALL_MASK="${INSTALL_MASK} ${FACTORY_INSTALL_MASK}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ${FLAGS_jobs} -ne -1 ]]; then
|
||||||
|
EMERGE_JOBS="--jobs=${FLAGS_jobs}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Figure out ARCH from the given toolchain.
|
# Figure out ARCH from the given toolchain.
|
||||||
# TODO: Move to common.sh as a function after scripts are switched over.
|
# TODO: Move to common.sh as a function after scripts are switched over.
|
||||||
TC_ARCH=$(echo "${CHOST}" | awk -F'-' '{ print $1 }')
|
TC_ARCH=$(echo "${CHOST}" | awk -F'-' '{ print $1 }')
|
||||||
|
|||||||
@ -325,13 +325,14 @@ function die {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Retry an emerge command according to $FLAGS_retries
|
# Retry an emerge command according to $FLAGS_retries
|
||||||
|
# The $EMERGE_JOBS flags will only be added the first time the command is run
|
||||||
function eretry () {
|
function eretry () {
|
||||||
$* && return 0
|
|
||||||
local i=
|
local i=
|
||||||
for i in $(seq $FLAGS_retries); do
|
for i in $(seq $FLAGS_retries); do
|
||||||
echo Retrying $*
|
echo Retrying $*
|
||||||
$* && return 0
|
$* $EMERGE_JOBS && return 0
|
||||||
done
|
done
|
||||||
|
$* && return 0
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user