From 4b105674e413fdcc03a6999942a4c67cb39a8cac Mon Sep 17 00:00:00 2001 From: dataprolet Date: Wed, 1 Jul 2026 21:29:03 +0200 Subject: [PATCH] fix: enable systemd-firstboot in arch-chroot, locale format --- install.sh | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/install.sh b/install.sh index 2bfb0bf..cb3117a 100644 --- a/install.sh +++ b/install.sh @@ -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 ##########