From a99bf31a90f215b0d53b06b0982cf0bd2951ccdd Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 19 Jan 2026 14:15:14 -0600 Subject: fix(archsetup): start systemd-resolved before creating DNS symlink The stub-resolv.conf file only exists when systemd-resolved is running. --- archsetup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archsetup b/archsetup index 17a7163..3d06893 100755 --- a/archsetup +++ b/archsetup @@ -618,6 +618,9 @@ create_user () { # Bootstrap DNS for git clones and AUR installs (full config in essential_services) if [ ! -L /etc/resolv.conf ] || [ "$(readlink /etc/resolv.conf)" != "/run/systemd/resolve/stub-resolv.conf" ]; then display "task" "bootstrapping DNS resolution" + # Must start systemd-resolved first - stub-resolv.conf only exists when it's running + systemctl start systemd-resolved >> "$logfile" 2>&1 || \ + error "error" "starting systemd-resolved for DNS bootstrap" "$?" ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf >> "$logfile" 2>&1 || \ error "error" "bootstrapping DNS resolution" "$?" fi -- cgit v1.2.3