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

This commit is contained in:
oddlama 2022-06-09 18:44:08 +02:00
parent e3a45b15ec
commit 944c745ce7
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
1 changed files with 9 additions and 6 deletions

View File

@ -86,12 +86,6 @@ function configure_portage() {
try mirrorselect "${mirrorselect_params[@]}" try mirrorselect "${mirrorselect_params[@]}"
fi 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 \ chmod 644 /etc/portage/make.conf \
|| die "Could not 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!" ewarn "Root password cleared, set one as soon as possible!"
fi 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." einfo "Gentoo installation complete."
[[ $USED_LUKS == "true" ]] \ [[ $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." && einfo "A backup of your luks headers can be found at '$LUKS_HEADER_BACKUP_DIR', in case you want to have a backup."