Clone gentoo repo over git

This solve a race condition verifying manifests
This commit is contained in:
Salt 2020-12-04 02:07:29 -06:00
parent 5bdd634354
commit d4e8f5c014
1 changed files with 13 additions and 0 deletions

View File

@ -215,6 +215,19 @@ build-gentoo-chroot() {
# Sync repositories
log "Getting ebuild repositories"
emerge-webrsync
log "Configuring gentoo repo"
cat <<-EOF > "/etc/portage/repos.conf/gentoo.conf"
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /usr/portage
#sync-depth = 1
sync-type = git
sync-uri = https://github.com/gentoo-mirror/gentoo.git
sync-git-verify-commit-signature = true
auto-sync = yes
EOF
emerge --sync
# Get the stable plasma/systemd profile and select it