Skip to content

Instantly share code, notes, and snippets.

@awesomebytes
Created January 27, 2020 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awesomebytes/ab1f237feea2f51ae65a5ecca203842e to your computer and use it in GitHub Desktop.
Save awesomebytes/ab1f237feea2f51ae65a5ecca203842e to your computer and use it in GitHub Desktop.
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