revert systemd-firstboot config
This commit is contained in:
+20
-26
@@ -351,38 +351,32 @@ genfstab -Up "/mnt" > "/mnt/etc/fstab"
|
|||||||
echo "Done."
|
echo "Done."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Set hardware clock
|
# Set time and hardware clock
|
||||||
# https://wiki.archlinux.org/title/Installation_guide#Time
|
# https://wiki.archlinux.org/title/Installation_guide#Time
|
||||||
arch-chroot "/mnt" hwclock --systohc # Set the Hardware Clock to the current System Time
|
echo "Setting timezone and clock.."
|
||||||
|
arch-chroot "/mnt" ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
||||||
|
arch-chroot "/mnt" hwclock --systohc
|
||||||
|
echo "Done."
|
||||||
|
echo
|
||||||
|
|
||||||
# Generate locale
|
# Set hostname
|
||||||
|
# https://wiki.archlinux.org/title/Installation_guide#Network_configuration
|
||||||
|
echo "Setting hostname.."
|
||||||
|
echo "${host}" > "/mnt/etc/hostname"
|
||||||
|
echo "Done."
|
||||||
|
echo
|
||||||
|
|
||||||
|
# Set locale and keymap
|
||||||
# https://wiki.archlinux.org/title/Installation_guide#Localization
|
# https://wiki.archlinux.org/title/Installation_guide#Localization
|
||||||
|
echo "Setting locale and keymap.."
|
||||||
echo "en_US.UTF-8 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
|
||||||
|
echo "LANG=en_US.UTF-8" >> "/mnt/etc/locale.conf"
|
||||||
|
|
||||||
# Set keymap, locale, timezone and hostname
|
echo "KEYMAP=de-latin1" > "/mnt/etc/vconsole.conf"
|
||||||
# https://wiki.archlinux.org/title/Systemd-firstboot
|
arch-chroot /mnt localectl set-keymap --no-convert de-latin1-nodeadkeys
|
||||||
service_dir="/mnt/etc/systemd/system/systemd-firstboot.service.d"
|
echo "Done."
|
||||||
mkdir "${service_dir}"
|
echo
|
||||||
|
|
||||||
rootdir="/mnt"
|
|
||||||
keymap="de-latin1-nodeadkeys"
|
|
||||||
locale="en_US.UTF-8"
|
|
||||||
timezone="Europe/Berlin"
|
|
||||||
|
|
||||||
cat << EOF > "${service_dir}/install.conf"
|
|
||||||
[Unit]
|
|
||||||
ConditionFirstBoot=
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=
|
|
||||||
ExecStart=/usr/bin/systemd-firstboot --root="${rootdir}" --keymap="${keymap}" --locale="${locale}" --timezone="${timezone}" --hostname="${host}" --force
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=sysinit.target
|
|
||||||
EOF
|
|
||||||
|
|
||||||
arch-chroot "/mnt" systemctl enable systemd-firstboot.service
|
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user