commit
716e062661
|
@ -1595,6 +1595,7 @@ USE_PORTAGE_TESTING=${USE_PORTAGE_TESTING@Q}
|
||||||
SELECT_MIRRORS=${SELECT_MIRRORS@Q}
|
SELECT_MIRRORS=${SELECT_MIRRORS@Q}
|
||||||
SELECT_MIRRORS_LARGE_FILE=${SELECT_MIRRORS_LARGE_FILE@Q}
|
SELECT_MIRRORS_LARGE_FILE=${SELECT_MIRRORS_LARGE_FILE@Q}
|
||||||
SYSTEMD=\$([[ \$STAGE3_VARIANT == *systemd* ]] && echo "true" || echo "false")
|
SYSTEMD=\$([[ \$STAGE3_VARIANT == *systemd* ]] && echo "true" || echo "false")
|
||||||
|
MUSL=\$([[ \$STAGE3_VARIANT == *musl* ]] && echo "true" || echo "false")
|
||||||
|
|
||||||
|
|
||||||
################################################
|
################################################
|
||||||
|
|
|
@ -248,6 +248,8 @@ STAGE3_BASENAME="stage3-$GENTOO_ARCH-$STAGE3_VARIANT"
|
||||||
# Automatically set to true, if the stage3 tarball is based on systemd. In this case
|
# Automatically set to true, if the stage3 tarball is based on systemd. In this case
|
||||||
# we need to use slightly different utilities to setup the base system.
|
# we need to use slightly different utilities to setup the base system.
|
||||||
SYSTEMD=$([[ $STAGE3_VARIANT == *systemd* ]] && echo "true" || echo "false")
|
SYSTEMD=$([[ $STAGE3_VARIANT == *systemd* ]] && echo "true" || echo "false")
|
||||||
|
# Automatically set to true, if the stage3 tarball is based on musl.
|
||||||
|
MUSL=$([[ $STAGE3_VARIANT == *musl* ]] && echo "true" || echo "false")
|
||||||
|
|
||||||
# If set to true, the installer will add ACCEPT_KEYWORDS="~$GENTOO_ARCH"
|
# If set to true, the installer will add ACCEPT_KEYWORDS="~$GENTOO_ARCH"
|
||||||
# to /etc/portage/make.conf to enable packages in testing.
|
# to /etc/portage/make.conf to enable packages in testing.
|
||||||
|
|
|
@ -13,11 +13,16 @@ function install_stage3() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function configure_base_system() {
|
function configure_base_system() {
|
||||||
|
if [[ $MUSL == "true" ]]; then
|
||||||
|
einfo "Installing musl-locales"
|
||||||
|
try emerge --verbose sys-apps/musl-locales
|
||||||
|
else
|
||||||
einfo "Generating locales"
|
einfo "Generating locales"
|
||||||
echo "$LOCALES" > /etc/locale.gen \
|
echo "$LOCALES" > /etc/locale.gen \
|
||||||
|| die "Could not write /etc/locale.gen"
|
|| die "Could not write /etc/locale.gen"
|
||||||
locale-gen \
|
locale-gen \
|
||||||
|| die "Could not generate locales"
|
|| die "Could not generate locales"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $SYSTEMD == "true" ]]; then
|
if [[ $SYSTEMD == "true" ]]; then
|
||||||
einfo "Setting machine-id"
|
einfo "Setting machine-id"
|
||||||
|
|
Loading…
Reference in New Issue