diff options
author | Thomas Haller <thaller@redhat.com> | 2023-05-15 11:00:18 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-05-15 11:02:10 +0200 |
commit | 33f7ee0bb7f92900b5f7f929e4feff6f6b872472 (patch) | |
tree | 38a8f3c60bd7e5c854f3129bcc9162c5c77421f1 | |
parent | 53ba9f4701f30b12637df2c7215a0b7da845b34c (diff) | |
download | NetworkManager-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-x | tools/nm-in-container/nm-in-container | 1 |
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[@]}" \ |