fix: enable systemd-firstboot in arch-chroot, locale format

This commit is contained in:
2026-07-01 21:29:03 +02:00
parent b1192cd5ad
commit 4b105674e4
+11 -13
View File
@@ -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
##########