Fix musl stage3 variant
This commit is contained in:
parent
1321769bb5
commit
d7ef780331
|
@ -13,13 +13,13 @@ function install_stage3() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function configure_base_system() {
|
function configure_base_system() {
|
||||||
|
if [[ $SYSTEMD == "true" ]]; then
|
||||||
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"
|
||||||
|
|
||||||
if [[ $SYSTEMD == "true" ]]; then
|
|
||||||
einfo "Setting machine-id"
|
einfo "Setting machine-id"
|
||||||
systemd-machine-id-setup \
|
systemd-machine-id-setup \
|
||||||
|| die "Could not setup systemd machine id"
|
|| die "Could not setup systemd machine id"
|
||||||
|
@ -43,6 +43,9 @@ function configure_base_system() {
|
||||||
ln -sfn "../usr/share/zoneinfo/$TIMEZONE" /etc/localtime \
|
ln -sfn "../usr/share/zoneinfo/$TIMEZONE" /etc/localtime \
|
||||||
|| die "Could not change /etc/localtime link"
|
|| die "Could not change /etc/localtime link"
|
||||||
else
|
else
|
||||||
|
einfo "Installing musl-locales"
|
||||||
|
try emerge --verbose sys-apps/musl-locales
|
||||||
|
|
||||||
# Set hostname
|
# Set hostname
|
||||||
einfo "Selecting hostname"
|
einfo "Selecting hostname"
|
||||||
sed -i "/hostname=/c\\hostname=\"$HOSTNAME\"" /etc/conf.d/hostname \
|
sed -i "/hostname=/c\\hostname=\"$HOSTNAME\"" /etc/conf.d/hostname \
|
||||||
|
|
Loading…
Reference in New Issue