Skip to content

Commit

Permalink
Workaround for systemd-networkd (#45)
Browse files Browse the repository at this point in the history
The archlinux ISO provides working networking, use it to provide working networking for server installs on first-boot.

Signed-off-by: funk-on-code <[email protected]>
  • Loading branch information
funk-on-code authored Sep 10, 2024
1 parent 9d9c42c commit 0e0cfa9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
Expand Down

0 comments on commit 0e0cfa9

Please sign in to comment.