Set LANG on systemd profile

This commit is contained in:
oddlama 2021-05-02 15:35:20 +02:00
parent 6daa319c17
commit d229d5bdea
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
3 changed files with 6 additions and 26 deletions

2
TODO
View File

@ -1,7 +1,5 @@
- root authorized_keys support
- zfs support - zfs support
- start systemd services - start systemd services
- create pool - create pool
- enable zstd - enable zstd
- systemd settings pls
- zfs selector dracut - zfs selector dracut

View File

@ -287,7 +287,7 @@ function disk_create_luks() {
--header-backup-file "$header_file" \ --header-backup-file "$header_file" \
|| die "Could not backup luks header on $device_desc" || die "Could not backup luks header on $device_desc"
cryptsetup open --type luks2 \ cryptsetup open --type luks2 \
--key-file "$keyfile" \ --key-file <(echo -n "$GENTOO_INSTALL_ENCRYPTION_KEY") \
"$device" "$name" \ "$device" "$name" \
|| die "Could not open luks encrypted device $device_desc" || die "Could not open luks encrypted device $device_desc"
} }

View File

@ -36,32 +36,14 @@ function configure_base_system() {
echo "KEYMAP=$KEYMAP" > /etc/vconsole.conf \ echo "KEYMAP=$KEYMAP" > /etc/vconsole.conf \
|| die "Could not write /etc/vconsole.conf" || die "Could not write /etc/vconsole.conf"
# Set locale
einfo "Selecting locale"
echo "LANG=$LOCALE" > /etc/locale.conf \
|| die "Could not write /etc/locale.conf"
einfo "Selecting timezone" einfo "Selecting timezone"
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"
# TODO use systemd-nspawn to start instead of chroot, then we can use these utils.
#hostnamectl set-hostname "$HOSTNAME" \
# || die "Could not set hostname"
## Set timezone
#einfo "Selecting timezone"
#timedatectl set-timezone "$TIMEZONE" \
# || die "Could not set timezone"
#einfo "Setting time to UTC"
#timedatectl set-local-rtc 0 \
# || die "Could not set local rtc to UTC"
## Set keymap
#einfo "Selecting keymap"
#localectl set-keymap "$KEYMAP" \
# || die "Could not set keymap"
## Set locale
#einfo "Selecting locale"
#localectl set-locale LANG="$LOCALE" \
# || die "Could not set locale"
else else
# Set hostname # Set hostname
einfo "Selecting hostname" einfo "Selecting hostname"