fix: move systemd-firstboot to end
This commit is contained in:
+20
-27
@@ -339,27 +339,6 @@ echo
|
|||||||
# 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
|
arch-chroot "/mnt" hwclock --systohc # Set the Hardware Clock to the current System Time
|
||||||
|
|
||||||
# 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}"
|
|
||||||
|
|
||||||
rootdir="/mnt"
|
|
||||||
keymap="de-latin1-nodeadkeys"
|
|
||||||
locale="en_US.UTF-8"
|
|
||||||
timezone="Europe/Berlin"
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
systemctl enable systemd-firstboot
|
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
||||||
# Editing mkinitcpio.conf
|
# Editing mkinitcpio.conf
|
||||||
@@ -453,12 +432,26 @@ EOF
|
|||||||
echo "Done."
|
echo "Done."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Unmounting and rebooting
|
# Set keymap, locale, timezone and hostname
|
||||||
echo "Unmounting system.."
|
# https://wiki.archlinux.org/title/Systemd-firstboot
|
||||||
umount "/mnt/boot"
|
service_dir="/mnt/etc/systemd/system/systemd-firstboot.service.d"
|
||||||
umount "/mnt"
|
mkdir "${service_dir}"
|
||||||
echo "Done."
|
|
||||||
echo
|
rootdir="/mnt"
|
||||||
|
keymap="de-latin1-nodeadkeys"
|
||||||
|
locale="en_US.UTF-8"
|
||||||
|
timezone="Europe/Berlin"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
systemctl enable systemd-firstboot.service
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user