diff options
Diffstat (limited to 'archsetup')
| -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 |
