Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
patch to succesfully execute functions
< bootstrap_interactive() {
---
> bootstrap_get_defaults() {
2724a2725,2729
> }
>
> bootstrap_all_stages() {
> bootstrap_get_defaults
>
2848a2854,2858
> bootstrap_emerge_emptytree_system
> }
>
> bootstrap_emerge_emptytree_system() {
>
3054c3064
< bootstrap_interactive
---
> bootstrap_all_stages
3103c3113,3128
< bootstrap_${TODO#non} || exit 1
---
> if [ ${TODO#non} == "interactive" ] ; then
> bootstrap_all_stages
> else
> # For convenience, either for testing or continuous integration purposes,
> # any function can be called, but the most interesting ones are
> # the sequence done in bootstrap_all_stages
> # stage1, stage2, stage3, emerge_emptytree_system
>
> FUNCTION_TO_CALL=${TODO}
> TODO=noninteractive
> bootstrap_get_defaults
> # because we unset ROOT in the previous environment
> # while checking for a sane environment, we set it back
> ROOT="${EPREFIX}"
> bootstrap_${FUNCTION_TO_CALL} || exit 1
> fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.