Enable custom overlays for Gentoo element #37
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This enables adding custom overlays at build time when creating Gentoo VM images. This is done by specifying a space separated list of tuples in the
GENTOO_CUSTOM_OVERLAYS
variable. Each tuple is split by the first colon where the left side is the repo name and the right side is the sync-uri. All custom overlays must be of the git type, similar to base overlays.This also cleans up a few other issues:
GENTOO_PORTAGE_CLEANUP="True"
, which is the default, now removes the repos viaeselect-repository
instead oflayman
. Repos are added viaeselect-repository
so it makes sense to keep this symmetric, especially sincelayman
isn't installed by default anymore.dist-kernel
USE flag is added to the defaults.dist-kernel-bin
is a default package so we should probably tell packages to actually use it.ACCEPT_KEYWORDS
One question I have though is how do you set
GENTOO_EMERGE_ENV
? There doesn't seem to be a good way (that I could find) to export an entire bash array so everything I tried got overwritten by the defaults...This was tested with the following script