mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-08-15 09:22:30 +02:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user