Subject: bug#43762: closed (Re: bug#43762: ‘guixenvironment -C’ containers lack /etc/hosts)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 02 Oct 2020 21:31:02 +0000

Your bug report

#43762: ‘guix environment -C’ containers lack /etc/hosts

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
43762: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=43762
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#43762: ‘guix environment -C’ containers lack /etc/hosts
From: Ludovic Courtès <[email-masked]>
To: [email-masked]
Date: Fri, 02 Oct 2020 23:29:57 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Ludovic Courtès <[email-masked]> skribis:

> $ guix environment -C --ad-hoc coreutils -- cat /etc/hosts
> cat: /etc/hosts: No such file or directory

Fixed in 0f53c801b91919380a924b402d1ff822bb1dc6ea!

Ludo'.

Subject: ‘guix environment -C’containers lack /etc/hosts
From: Ludovic Courtès <[email-masked]>
To: <[email-masked]>
Date: Fri, 02 Oct 2020 15:53:49 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi!

Look:

--8<---------------cut here---------------start------------->8---
$ guix environment -C --ad-hoc coreutils -- cat /etc/hosts
cat: /etc/hosts: No such file or directory
$ guix describe
Generacio 162   Oct 01 2020 00:23:38    (nuna)
  guix 7607ace
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 7607ace5091aea0157ba5c8a508129cc5fc4f931
--8<---------------cut here---------------end--------------->8---

I think we should add /etc/hosts with an entry for “localhost”, just
like libstore/build.cc does.

Ludo’.