From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: [PATCH] environment: container: Do not remount network files as read-only. Date: Sat, 26 Mar 2016 12:49:31 -0400 Message-ID: References: <87wpozldb5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajrP3-0001jq-DJ for guix-devel@gnu.org; Sat, 26 Mar 2016 12:49:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajrP2-0001Hy-GX for guix-devel@gnu.org; Sat, 26 Mar 2016 12:49:33 -0400 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:35218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajrP2-0001Hs-BC for guix-devel@gnu.org; Sat, 26 Mar 2016 12:49:32 -0400 Received: by mail-qk0-x229.google.com with SMTP id o6so61830781qkc.2 for ; Sat, 26 Mar 2016 09:49:32 -0700 (PDT) In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Drew C Cc: guix-devel On Sat, Mar 26, 2016 at 12:29 PM, Drew C wrote: > > On Sat, Mar 26, 2016 at 7:06 AM, Thompson, David > wrote: >> >> On Fri, Mar 18, 2016 at 4:51 PM, Ludovic Court=C3=A8s wro= te: >> > "Thompson, David" skribis: >> > >> >> I noticed that 'guix environment --container --network' didn't work o= n >> >> an Ubuntu machine I was on, and the culprit was remounting things lik= e >> >> /etc/resolv.conf read-only after the initial bind mount. > > > > One thing that I have run across is the following : > > $ cat /etc/resolv.conf > # Dynamic resolv.conf(5) file for glibc resolver(3) generated by > resolvconf(8) > # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN > nameserver 127.0.1.1 > > It re-writes that file every time a new network connection is made. > > $ man resolvconf > [...] > DESCRIPTION > The resolvconf package comprises a simple database for run-time > name=E2=80=90 > server information and a simple framework for notifying applicatio= ns > of > changes in that information. Resolvconf thus sets itself up as > the > intermediary between programs that supply nameserver informatio= n > and > applications that use that information. > [...] > > I am not at all sure if this is the cause of the issue, but I have run in= to > it many times before with WiFi and me trying to edit it to 8.8.8.8, so I > figure this is a decent time to bring it up. Interesting! Is this on Ubuntu as well? - Dave