Re: [Nix-dev] /dev/shm inconsistency in chroot

2014-03-21 Thread Ludovic Courtès
Mark H Weaver m...@netris.org skribis: Shea Levy s...@shealevy.com writes: On 01/24/2014 05:16 AM, Sree Harsha Totakura wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/23/2014 08:56 PM, Mark H Weaver wrote: We should not inherit /dev from the host system at all, but rather

Re: [Nix-dev] /dev/shm inconsistency in chroot

2014-01-24 Thread Shea Levy
On 01/24/2014 05:16 AM, Sree Harsha Totakura wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/23/2014 08:56 PM, Mark H Weaver wrote: We should not inherit /dev from the host system at all, but rather create it from scratch with just the things we need. IMO, that's the only truly

Re: [Nix-dev] /dev/shm inconsistency in chroot

2014-01-24 Thread Ludovic Courtès
Shea Levy s...@shealevy.com skribis: On 01/24/2014 05:16 AM, Sree Harsha Totakura wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/23/2014 08:56 PM, Mark H Weaver wrote: We should not inherit /dev from the host system at all, but rather create it from scratch with just the

Re: [Nix-dev] /dev/shm inconsistency in chroot

2014-01-24 Thread Mark H Weaver
Shea Levy s...@shealevy.com writes: On 01/24/2014 05:16 AM, Sree Harsha Totakura wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/23/2014 08:56 PM, Mark H Weaver wrote: We should not inherit /dev from the host system at all, but rather create it from scratch with just the things

Re: [Nix-dev] /dev/shm inconsistency in chroot

2014-01-24 Thread Ludovic Courtès
Sree Harsha Totakura sreehar...@totakura.in skribis: On 01/24/2014 06:13 PM, Mark H Weaver wrote: Shea Levy s...@shealevy.com writes: Another option is to mount a devtmpfs there, for systems which support it. devtmpfs may give different devices on each machine and they may hinder our

Re: [Nix-dev] /dev/shm inconsistency in chroot

2014-01-24 Thread Shea Levy
On 01/24/2014 04:17 PM, Ludovic Courtès wrote: Sree Harsha Totakura sreehar...@totakura.in skribis: On 01/24/2014 06:13 PM, Mark H Weaver wrote: Shea Levy s...@shealevy.com writes: Another option is to mount a devtmpfs there, for systems which support it. devtmpfs may give different

/dev/shm inconsistency in chroot

2014-01-23 Thread Sree Harsha Totakura
Hi, It has been known for a while that any access to /dev/shm fails inside chroot if the host system has /dev/shm symlinked to /run/shm. The suggested method to deal with this until now is to remove the symlink from the host system, create /dev/shm directory and mount a tmpfs on it. I spent

Re: /dev/shm inconsistency in chroot

2014-01-23 Thread Mark H Weaver
Hi, Sree Harsha Totakura sreehar...@totakura.in writes: It has been known for a while that any access to /dev/shm fails inside chroot if the host system has /dev/shm symlinked to /run/shm. The suggested method to deal with this until now is to remove the symlink from the host system, create