From 3746046d509194e84b5b47733348594b3f5cb1d3 Mon Sep 17 00:00:00 2001 From: funk-on-code <113871227+funk-on-code@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:24:03 +1000 Subject: [PATCH] Workaround for systemd-networkd The archlinux ISO provides working networking, use it to provide working networking for server installs on first-boot. Signed-off-by: funk-on-code <113871227+funk-on-code@users.noreply.github.com> --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 0857d14..189aeac 100644 --- a/install.sh +++ b/install.sh @@ -509,7 +509,12 @@ fi if [ "${network_daemon}" = 'networkmanager' ]; then mkdir -p /mnt/etc/systemd/system/NetworkManager.service.d/ unpriv curl -s https://gitlab.com/divested/brace/-/raw/master/brace/usr/lib/systemd/system/NetworkManager.service.d/99-brace.conf | tee /mnt/etc/systemd/system/NetworkManager.service.d/99-brace.conf > /dev/null -fi +fi + +if [ "${network_daemon}" = 'systemd-networkd' ]; then + # arch-iso has working networking, booted does not. + cp -ap /etc/systemd/network/20* /mnt/etc/systemd/network/ > /dev/null +fi ## Configuring the system. arch-chroot /mnt /bin/bash -e <