summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchsetup3
1 files changed, 3 insertions, 0 deletions
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