mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-01 10:31:37 +02:00
Merge pull request #416 from flatcar/krnowak/fix-verbose-bootstrap
scripts/bootstrap: fix verbose bootstrap
This commit is contained in:
commit
8465eab673
@ -357,10 +357,17 @@ fi
|
|||||||
if [[ -n ${STRAP_RUN} ]] ; then
|
if [[ -n ${STRAP_RUN} ]] ; then
|
||||||
if [[ -x ${GCC_CONFIG} ]] && ${GCC_CONFIG} --get-current-profile &>/dev/null
|
if [[ -x ${GCC_CONFIG} ]] && ${GCC_CONFIG} --get-current-profile &>/dev/null
|
||||||
then
|
then
|
||||||
# Make sure we get the old gcc unmerged ...
|
# Flatcar: avoid failures when bootstraping in verbose mode
|
||||||
${V_ECHO} emerge ${STRAP_EMERGE_OPTS} --prune sys-devel/gcc || cleanup 1
|
output=$(${V_ECHO} emerge ${STRAP_EMERGE_OPTS} --prune --pretend --quiet sys-devel/gcc 2>/dev/null)
|
||||||
# Make sure the profile and /lib/cpp and /usr/bin/cc are valid ...
|
if [[ ${DEBUG} = "1" ]] ; then
|
||||||
${GCC_CONFIG} "$(${GCC_CONFIG} --get-current-profile)" &>/dev/null
|
echo "${output}"
|
||||||
|
fi
|
||||||
|
if [[ "${output}" = *'All selected packages:'* ]] ; then
|
||||||
|
# Make sure we get the old gcc unmerged ...
|
||||||
|
${V_ECHO} emerge ${STRAP_EMERGE_OPTS} --prune sys-devel/gcc || cleanup 1
|
||||||
|
# Make sure the profile and /lib/cpp and /usr/bin/cc are valid ...
|
||||||
|
${GCC_CONFIG} "$(${GCC_CONFIG} --get-current-profile)" &>/dev/null
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user