From 6faca9353f02a0479126a36f803ad46369ce9da8 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 2 Dec 2018 10:47:27 -0500 Subject: [PATCH] archlinux: Enable systemd services before first boot This should work, although I haven't tested it yet. --- .archlinux/install-scripts/004-postinstall | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.archlinux/install-scripts/004-postinstall b/.archlinux/install-scripts/004-postinstall index b60918a4..2ae82cde 100755 --- a/.archlinux/install-scripts/004-postinstall +++ b/.archlinux/install-scripts/004-postinstall @@ -7,11 +7,13 @@ set -xe -# Start and enable the DHCP client daemon service -systemctl enable --now dhcpcd.service +# Enable the DHCP client daemon service +arch-chroot /mnt ln -sf /usr/lib/systemd/system/dhcpcd.service \ + /etc/systemd/system/multi-user.target.wants/dhcpcd.service -# Sync the time periodically with a remote server -timedatectl set-ntp true +# Enable the timesync daemon service (sync the time periodically with a remote server) +arch-chroot /mnt ln -sf /usr/lib/systemd/system/systemd-timesyncd.service \ + /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service # Enable colors in pacman by uncommenting the Color line. sed -i '/Color/s/^#//g' /etc/pacman.conf