diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-19 14:15:14 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-19 14:15:14 -0600 |
| commit | a99bf31a90f215b0d53b06b0982cf0bd2951ccdd (patch) | |
| tree | 42f132ab4978fb2516594eabbd77ac923a00dcda | |
| parent | 83c3dd2803588159086189e2d31e6204ae8e67c7 (diff) | |
fix(archsetup): start systemd-resolved before creating DNS symlink
The stub-resolv.conf file only exists when systemd-resolved is running.
| -rwxr-xr-x | archsetup | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
