forked from dataprolet/Arch-Linux-Installer
fix: enable systemd-firstboot in arch-chroot, locale format
This commit is contained in:
+11
-13
@@ -357,31 +357,29 @@ arch-chroot "/mnt" hwclock --systohc # Set the Hardware Clock to the current Sy
|
||||
|
||||
# Generate locale
|
||||
# https://wiki.archlinux.org/title/Installation_guide#Localization
|
||||
echo "en_US.UTF-8" >> "/mnt/etc/locale.gen"
|
||||
echo "en_US.UTF-8 UTF-8" >> "/mnt/etc/locale.gen"
|
||||
arch-chroot "/mnt" locale-gen
|
||||
|
||||
# Set keymap, locale, timezone and hostname
|
||||
# https://wiki.archlinux.org/title/Systemd-firstboot
|
||||
# service_dir="/mnt/etc/systemd/system/systemd-firstboot.service.d"
|
||||
# mkdir "${service_dir}"
|
||||
service_dir="/mnt/etc/systemd/system/systemd-firstboot.service.d"
|
||||
mkdir "${service_dir}"
|
||||
|
||||
rootdir="/mnt"
|
||||
keymap="de-latin1-nodeadkeys"
|
||||
locale="en_US.UTF-8"
|
||||
timezone="Europe/Berlin"
|
||||
|
||||
arch-chroot "/mnt" systemd-firstboot --root="${rootdir}" --keymap="${keymap}" --locale="${locale}" --timezone="${timezone}" --hostname="${host}"
|
||||
cat << EOF > "${service_dir}/install.conf"
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/bin/systemd-firstboot --root="${rootdir}" --keymap="${keymap}" --locale="${locale}" --timezone="${timezone}" --hostname="${host}"
|
||||
|
||||
# cat << EOF > "${service_dir}/install.conf"
|
||||
# [Service]
|
||||
# ExecStart=
|
||||
# ExecStart=/usr/bin/systemd-firstboot --root="${rootdir}" --keymap="${keymap}" --locale="${locale}" --timezone="${timezone}" --hostname="${host}"
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
EOF
|
||||
|
||||
# [Install]
|
||||
# WantedBy=sysinit.target
|
||||
# EOF
|
||||
|
||||
# systemctl enable systemd-firstboot.service
|
||||
arch-chroot "/mnt" systemctl enable systemd-firstboot.service
|
||||
|
||||
##########
|
||||
|
||||
|
||||
Reference in New Issue
Block a user