From 944c745ce734f27ab58fbdbb90d052d351cd1db3 Mon Sep 17 00:00:00 2001 From: oddlama Date: Thu, 9 Jun 2022 18:44:08 +0200 Subject: [PATCH] chore: enable portage testing after installation to hopefully ensure a better installation experience. --- scripts/main.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/main.sh b/scripts/main.sh index bb38fa3..179dbf5 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -86,12 +86,6 @@ function configure_portage() { try mirrorselect "${mirrorselect_params[@]}" fi - if [[ $USE_PORTAGE_TESTING == "true" ]]; then - einfo "Adding ~$GENTOO_ARCH to ACCEPT_KEYWORDS" - echo "ACCEPT_KEYWORDS=\"~$GENTOO_ARCH\"" >> /etc/portage/make.conf \ - || die "Could not modify /etc/portage/make.conf" - fi - chmod 644 /etc/portage/make.conf \ || die "Could not chmod 644 /etc/portage/make.conf" } @@ -429,6 +423,15 @@ EOF ewarn "Root password cleared, set one as soon as possible!" fi + # If configured, change to gentoo testing at the last moment. + # This is to ensure a smooth installation process. You can deal + # with the blockers after installation ;) + if [[ $USE_PORTAGE_TESTING == "true" ]]; then + einfo "Adding ~$GENTOO_ARCH to ACCEPT_KEYWORDS" + echo "ACCEPT_KEYWORDS=\"~$GENTOO_ARCH\"" >> /etc/portage/make.conf \ + || die "Could not modify /etc/portage/make.conf" + fi + einfo "Gentoo installation complete." [[ $USED_LUKS == "true" ]] \ && einfo "A backup of your luks headers can be found at '$LUKS_HEADER_BACKUP_DIR', in case you want to have a backup."