From d7ef78033160a7fb0c448b902e1c556a14e0167b Mon Sep 17 00:00:00 2001 From: thiblizz <101073848+thiblizz@users.noreply.github.com> Date: Fri, 13 Oct 2023 01:18:00 +0200 Subject: [PATCH] Fix musl stage3 variant --- scripts/main.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/main.sh b/scripts/main.sh index 709bf2e..91b14bc 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -13,13 +13,13 @@ function install_stage3() { } function configure_base_system() { - einfo "Generating locales" - echo "$LOCALES" > /etc/locale.gen \ - || die "Could not write /etc/locale.gen" - locale-gen \ - || die "Could not generate locales" - if [[ $SYSTEMD == "true" ]]; then + einfo "Generating locales" + echo "$LOCALES" > /etc/locale.gen \ + || die "Could not write /etc/locale.gen" + locale-gen \ + || die "Could not generate locales" + einfo "Setting machine-id" systemd-machine-id-setup \ || die "Could not setup systemd machine id" @@ -43,6 +43,9 @@ function configure_base_system() { ln -sfn "../usr/share/zoneinfo/$TIMEZONE" /etc/localtime \ || die "Could not change /etc/localtime link" else + einfo "Installing musl-locales" + try emerge --verbose sys-apps/musl-locales + # Set hostname einfo "Selecting hostname" sed -i "/hostname=/c\\hostname=\"$HOSTNAME\"" /etc/conf.d/hostname \