1
0
forked from extern/nix-config

archlinux: Enable systemd services before first boot

This should work, although I haven't tested it yet.
This commit is contained in:
Donovan Glover 2018-12-02 10:47:27 -05:00
parent 4b97b8df9d
commit 6faca9353f
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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