From 87f1b4545bfdd6d5d09e9c8bb31f8fb96d5313aa Mon Sep 17 00:00:00 2001 From: Michal Domonkos Date: Thu, 17 Aug 2023 14:00:08 +0200 Subject: [PATCH] Enable DNS resolution in "make shell" Networking is currently enabled in test containers (we don't use --unshare-net) but for domain names to be resolvable, we need an /etc/resolv.conf, too, so add it from the host, similar to how e.g. Podman does it. We don't need network access in the test-suite but it can be handy for interactive testing in "make shell", e.g. to allow gdb to fetch debuginfo data through debuginfod automatically. --- tests/mktree.fedora | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/mktree.fedora b/tests/mktree.fedora index a21f23079..dd79ba95c 100755 --- a/tests/mktree.fedora +++ b/tests/mktree.fedora @@ -148,6 +148,9 @@ case $CMD in zlib \ zstd + # Enable DNS resolution + cp /etc/resolv.conf $BASE_DIR/etc/ + # Point RPM to newly created database echo "%_dbpath $(rpm --eval '%_dbpath')" > $BASE_DIR/root/.rpmmacros