History

chore: enable portage testing after installation to hopefully ensure a better installation experience.

oddlama committed 4 years ago

Commit 944c7451 parent e3a45b11 file · +9 −6Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/main.sh+9−6
@@ -86,12 +86,6 @@ function configure_portage() { · 85 unmodified lines
8686 try mirrorselect "${mirrorselect_params[@]}"
8787 fi
8888
89− if [[ $USE_PORTAGE_TESTING == "true" ]]; then
90− einfo "Adding ~$GENTOO_ARCH to ACCEPT_KEYWORDS"
91− echo "ACCEPT_KEYWORDS=\"~$GENTOO_ARCH\"" >> /etc/portage/make.conf \
92− || die "Could not modify /etc/portage/make.conf"
93− fi
94−
9589 chmod 644 /etc/portage/make.conf \
9690 || die "Could not chmod 644 /etc/portage/make.conf"
9791 }
@@ -429,6 +423,15 @@ EOF · 331 unmodified lines
429423 ewarn "Root password cleared, set one as soon as possible!"
430424 fi
431425
426+ # If configured, change to gentoo testing at the last moment.
427+ # This is to ensure a smooth installation process. You can deal
428+ # with the blockers after installation ;)
429+ if [[ $USE_PORTAGE_TESTING == "true" ]]; then
430+ einfo "Adding ~$GENTOO_ARCH to ACCEPT_KEYWORDS"
431+ echo "ACCEPT_KEYWORDS=\"~$GENTOO_ARCH\"" >> /etc/portage/make.conf \
432+ || die "Could not modify /etc/portage/make.conf"
433+ fi
434+
432435 einfo "Gentoo installation complete."
433436 [[ $USED_LUKS == "true" ]] \
434437 && einfo "A backup of your luks headers can be found at '$LUKS_HEADER_BACKUP_DIR', in case you want to have a backup."