From de3e56d72f3db3f07f14566784984ece75ee1249 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Tue, 28 Jul 2026 16:28:26 +0200 Subject: [PATCH] fix(torrent): seed /etc/resolv.conf in LXC (download rootfs has none, apt/npm can't resolve) (ref #917) Co-Authored-By: Gerald KERMA --- packages/secubox-torrent/lxc/install-lxc.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/secubox-torrent/lxc/install-lxc.sh b/packages/secubox-torrent/lxc/install-lxc.sh index 40f0f97d..fbcdea3d 100755 --- a/packages/secubox-torrent/lxc/install-lxc.sh +++ b/packages/secubox-torrent/lxc/install-lxc.sh @@ -61,6 +61,9 @@ lxc.mount.entry = $DATA_DIR data/torrent none bind,create=dir 0 0 EOF lxc-start -n "$LXC_NAME" -P "$LXC_PATH" sleep 5 + # Seed DNS: the download-template rootfs ships no resolver, so apt/npm can't + # resolve deb.debian.org / the npm registry. Matches secubox-peertube. + la sh -c 'rm -f /etc/resolv.conf; printf "nameserver 1.1.1.1\nnameserver 9.9.9.9\n" > /etc/resolv.conf' la apt-get update la apt-get install -y --no-install-recommends nodejs npm ca-certificates python3 build-essential touch "$SENTINEL"