From fdd5e27de8c11b321c8b739bfc978f48b09f0fa9 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 3 Dec 2018 11:12:07 -0500 Subject: [PATCH] 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. --- .archlinux/install-scripts/004-postinstall | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.archlinux/install-scripts/004-postinstall b/.archlinux/install-scripts/004-postinstall index 797f924c..d75cb4e0 100755 --- a/.archlinux/install-scripts/004-postinstall +++ b/.archlinux/install-scripts/004-postinstall @@ -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