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:
parent
4b97b8df9d
commit
6faca9353f
@ -7,11 +7,13 @@
|
|||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
# Start and enable the DHCP client daemon service
|
# Enable the DHCP client daemon service
|
||||||
systemctl enable --now dhcpcd.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
|
# Enable the timesync daemon service (sync the time periodically with a remote server)
|
||||||
timedatectl set-ntp true
|
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.
|
# Enable colors in pacman by uncommenting the Color line.
|
||||||
sed -i '/Color/s/^#//g' /etc/pacman.conf
|
sed -i '/Color/s/^#//g' /etc/pacman.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user