From 6485705d4b5c434552f07aff7961b6359229d985 Mon Sep 17 00:00:00 2001 From: ansible Date: Tue, 7 Apr 2026 16:04:15 +0000 Subject: [PATCH] =?UTF-8?q?Remove=20hardcoded=20DNS=20=E2=80=94=20keep=20h?= =?UTF-8?q?ost=20resolv.conf=20in=20rootfs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't overwrite the host's resolv.conf with hardcoded 8.8.8.8. The host's DNS config is already correct for both build and runtime. Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/install.sh | 2 -- src/setup.ts | 5 ----- 2 files changed, 7 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 78ab6b4..a4e756d 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -304,8 +304,6 @@ else echo "[storage]" > /etc/containers/storage.conf echo "driver = \"vfs\"" >> /etc/containers/storage.conf ' || err "Failed to install packages in chroot" - # Set static DNS for runtime - echo "nameserver 8.8.8.8" | sudo tee /tmp/agent-build-mnt/etc/resolv.conf > /dev/null ok "Alpine packages installed" log "Installing agent script and config..." diff --git a/src/setup.ts b/src/setup.ts index acf6253..87dbf79 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -115,11 +115,6 @@ EOF`); { stdio: "inherit", timeout: 120_000 } ); - // Set static DNS for runtime (replace host resolv.conf used during install) - execSync( - `echo "nameserver 8.8.8.8" | sudo tee ${ext4Mount}/etc/resolv.conf > /dev/null` - ); - // Networking init script execSync(`sudo tee ${ext4Mount}/etc/init.d/networking > /dev/null << 'EOF' #!/sbin/openrc-run