archlinux: Create systemd output directories as needed

Symlinking the service files manually works, but it is not guaranteed
that these directories will already be created after the pacstrap step.
This commit is contained in:
Donovan Glover 2018-12-03 11:12:07 -05:00
parent 83c1c72655
commit fdd5e27de8
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -6,6 +6,10 @@
set -xe
# Create the output directories if they don't exist yet
arch-chroot /mnt mkdir -p /etc/systemd/system/multi-user.target.wants
arch-chroot /mnt mkdir -p /etc/systemd/system/sysinit.target.wants
# 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