From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: Re: Environment containers Date: Thu, 29 Oct 2015 11:25:56 +0100 Message-ID: <87r3keas3v.fsf@T420.taylan> References: <87y4epsnjs.fsf@T420.taylan> 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]:51053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrkMO-0001Xt-6a for guix-devel@gnu.org; Thu, 29 Oct 2015 06:23:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrkMN-0003rb-Eh for guix-devel@gnu.org; Thu, 29 Oct 2015 06:23:08 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:36408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrkMN-0003rV-9P for guix-devel@gnu.org; Thu, 29 Oct 2015 06:23:07 -0400 Received: by wicfx6 with SMTP id fx6so223065700wic.1 for ; Thu, 29 Oct 2015 03:23:06 -0700 (PDT) In-Reply-To: <87y4epsnjs.fsf@T420.taylan> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Mon, 26 Oct 2015 15:37:59 +0100") 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: "Thompson, David" Cc: guix-devel taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") writes: > After some PEBKAC David helped me sort out over IRC, I got this running. > Thanks! :-) I just (partly) figured out the reason of one of the mysterious problems I was encountering. taylan@T420:~$ cd ~ taylan@T420:~$ guix environment --container --ad-hoc bash -- bash -c 'echo = foo' || echo FAIL FAIL taylan@T420:~$ mkdir TEST; cd TEST taylan@T420:~/TEST$ guix environment --container --ad-hoc bash -- bash -c '= echo foo' || echo FAIL foo taylan@T420:~/TEST$ When I use strace -f, I see the following in the failing variant: mount("/home/taylan", "/tmp/guix-directory.wfzVlc//home/taylan", 0x17db9f0,= MS_BIND, NULL) =3D -1 EINVAL (Invalid argument) The two directories have the exact same permission bits (0755), UID, and GID, as per stat(1). When I create another directory with the same owner and permissions in /home, it works fine there. /home/taylan has some mount-points of its own, e.g. ~/media is a mount-point. My best guess is that it's related to that. /home/taylan itself is not a mount-point, FYI. I wish C had a proper error reporting system. :-) Taylan