environment: Provide /etc/hosts in containers without '--network'.
authorLudovic Courtès <ludo@gnu.org>
Fri, 2 Oct 2020 21:17:40 +0000 (23:17 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 2 Oct 2020 21:28:09 +0000 (23:28 +0200)
commit0f53c801b91919380a924b402d1ff822bb1dc6ea
tree428a6c2915344177a704d817796ffebdc9366536
parent8e1907a72430aa989125b053573ef0897c480697
environment: Provide /etc/hosts in containers without '--network'.

Fixes <https://bugs.gnu.org/43762>.

* guix/scripts/environment.scm (launch-environment/container): Create
/etc/hosts when NETWORK? is false.
* tests/guix-environment-container.sh: Add "localhost" resolution test.
guix/scripts/environment.scm
tests/guix-environment-container.sh