From d4e8f5c014dec6d88f04a5c5bc53bad5a2b48130 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 4 Dec 2020 02:07:29 -0600 Subject: [PATCH] Clone gentoo repo over git This solve a race condition verifying manifests --- gentoostrap.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gentoostrap.sh b/gentoostrap.sh index ca1dab0..e1fb0a2 100755 --- a/gentoostrap.sh +++ b/gentoostrap.sh @@ -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