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
|
# Generate locale
|
||||||
# https://wiki.archlinux.org/title/Installation_guide#Localization
|
# 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
|
arch-chroot "/mnt" locale-gen
|
||||||
|
|
||||||
# Set keymap, locale, timezone and hostname
|
# Set keymap, locale, timezone and hostname
|
||||||
# https://wiki.archlinux.org/title/Systemd-firstboot
|
# https://wiki.archlinux.org/title/Systemd-firstboot
|
||||||
# service_dir="/mnt/etc/systemd/system/systemd-firstboot.service.d"
|
service_dir="/mnt/etc/systemd/system/systemd-firstboot.service.d"
|
||||||
# mkdir "${service_dir}"
|
mkdir "${service_dir}"
|
||||||
|
|
||||||
rootdir="/mnt"
|
rootdir="/mnt"
|
||||||
keymap="de-latin1-nodeadkeys"
|
keymap="de-latin1-nodeadkeys"
|
||||||
locale="en_US.UTF-8"
|
locale="en_US.UTF-8"
|
||||||
timezone="Europe/Berlin"
|
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"
|
[Install]
|
||||||
# [Service]
|
WantedBy=sysinit.target
|
||||||
# ExecStart=
|
EOF
|
||||||
# ExecStart=/usr/bin/systemd-firstboot --root="${rootdir}" --keymap="${keymap}" --locale="${locale}" --timezone="${timezone}" --hostname="${host}"
|
|
||||||
|
|
||||||
# [Install]
|
arch-chroot "/mnt" systemctl enable systemd-firstboot.service
|
||||||
# WantedBy=sysinit.target
|
|
||||||
# EOF
|
|
||||||
|
|
||||||
# systemctl enable systemd-firstboot.service
|
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user