Actually select keymap and timezone on systemd configurations. Fixes #4.

This commit is contained in:
oddlama 2020-11-26 13:29:47 +01:00
parent b7b3d9c529
commit 48db35cc76
No known key found for this signature in database
GPG Key ID: 88EA325D51D53908
1 changed files with 13 additions and 2 deletions

View File

@ -64,12 +64,23 @@ configure_base_system() {
# Set hostname
einfo "Selecting hostname"
echo "$HOSTNAME" > /etc/hostname
echo "$HOSTNAME" > /etc/hostname \
|| die "Could not write /etc/hostname"
# Set keymap
einfo "Selecting keymap"
echo "KEYMAP=$KEYMAP" > /etc/vconsole.conf \
|| die "Could not write /etc/vconsole.conf"
einfo "Selecting timezone"
ln -sfn "../usr/share/zoneinfo/$TIMEZONE" /etc/localtime \
|| 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
# TODO use systemd-nspawn to start instead of chroot, then we can use these utils.
#einfo "Selecting timezone"
#timedatectl set-timezone "$TIMEZONE" \
# || die "Could not set timezone"