summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-05-15 11:00:18 +0200
committerThomas Haller <thaller@redhat.com>2023-05-15 11:02:10 +0200
commit33f7ee0bb7f92900b5f7f929e4feff6f6b872472 (patch)
tree38a8f3c60bd7e5c854f3129bcc9162c5c77421f1
parent53ba9f4701f30b12637df2c7215a0b7da845b34c (diff)
downloadNetworkManager-33f7ee0bb7f92900b5f7f929e4feff6f6b872472.tar.gz
nm-in-container: run with "--no-hosts" to have a plain /etc/hosts in the container
The bind mount interferes with running certain CI tests that want to change /etc/hosts.
-rwxr-xr-xtools/nm-in-container/nm-in-container1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/nm-in-container/nm-in-container b/tools/nm-in-container/nm-in-container
index 87a8c0117a..a009f50d3e 100755
--- a/tools/nm-in-container/nm-in-container
+++ b/tools/nm-in-container/nm-in-container
@@ -579,6 +579,7 @@ do_run() {
podman run --privileged \
--name "$CONTAINER_NAME_NAME" \
--dns=none \
+ --no-hosts \
-d \
-v "$BASEDIR_NM:$BASEDIR_NM" \
"${BIND_NM_CI[@]}" \