guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Environment containers


From: Taylan Ulrich Bayırlı/Kammer
Subject: Re: Environment containers
Date: Thu, 29 Oct 2015 11:25:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

address@hidden (Taylan Ulrich "Bayırlı/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.

address@hidden:~$ cd ~
address@hidden:~$ guix environment --container --ad-hoc bash -- bash -c 'echo 
foo' || echo FAIL
FAIL
address@hidden:~$ mkdir TEST; cd TEST
address@hidden:~/TEST$ guix environment --container --ad-hoc bash -- bash -c 
'echo foo' || echo FAIL
foo
address@hidden:~/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) = -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]