236 |
echo "Stage1 complete; user requested to abort after this step." |
echo "Stage1 complete; user requested to abort after this step." |
237 |
echo "Exiting ..." |
echo "Exiting ..." |
238 |
exit 0 |
exit 0 |
239 |
|
else |
240 |
|
echo "Stage1 complete; continuing." |
241 |
fi |
fi |
242 |
|
|
243 |
# now create an initrc for the installation of the basesystem |
# now create an initrc for the installation of the basesystem |
249 |
add_initrc "export PROFILE=${PROFILE}" |
add_initrc "export PROFILE=${PROFILE}" |
250 |
add_initrc "export CONFIG_PROTECT=-*" |
add_initrc "export CONFIG_PROTECT=-*" |
251 |
add_initrc "export MY_MAGEDIR=${MY_MAGEDIR}" |
add_initrc "export MY_MAGEDIR=${MY_MAGEDIR}" |
252 |
|
if [[ -n ${MAGERC} ]] |
253 |
|
then |
254 |
|
# unset global MAGERC here (bash-5 inclusion issues) |
255 |
|
add_initrc 'unset MAGERC' |
256 |
|
fi |
257 |
|
|
258 |
# add proxies if defined |
# add proxies if defined |
259 |
[[ -n ${http_proxy} ]] && add_initrc "export http_proxy=${http_proxy}" |
[[ -n ${http_proxy} ]] && add_initrc "export http_proxy=${http_proxy}" |