Skip to content

Commit

Permalink
Enable DNS resolution in "make shell"
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
dmnks committed Aug 17, 2023
1 parent 0355b06 commit f387fe5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/mktree.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,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

Expand Down

0 comments on commit f387fe5

Please sign in to comment.