[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: /dev/shm inconsistency in chroot
From: |
Mark H Weaver |
Subject: |
Re: /dev/shm inconsistency in chroot |
Date: |
Thu, 23 Jan 2014 14:56:21 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Hi,
Sree Harsha Totakura <address@hidden> 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 /dev/shm directory and mount a
> tmpfs on it.
[...]
> The above problem can be addressed by passing --chroot-directory=/run to
> the guix-daemon which then includes /run into the list of mounts that
> are to be bind mounted inside chroot.
This proposal would take us in the wrong direction. We should not solve
this problem by inheriting more directories from the host system, but
rather by inheriting fewer. Everything that we inherit from the host
system is a potential impurity, and this would add more of them.
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 proper solution.
Thoughts?
Mark
- /dev/shm inconsistency in chroot, Sree Harsha Totakura, 2014/01/23
- Re: /dev/shm inconsistency in chroot,
Mark H Weaver <=
- Re: /dev/shm inconsistency in chroot, Sree Harsha Totakura, 2014/01/24
- Re: [Nix-dev] /dev/shm inconsistency in chroot, Shea Levy, 2014/01/24
- Re: [Nix-dev] /dev/shm inconsistency in chroot, Ludovic Courtès, 2014/01/24
- Re: [Nix-dev] /dev/shm inconsistency in chroot, Mark H Weaver, 2014/01/24
- Re: [Nix-dev] /dev/shm inconsistency in chroot, Sree Harsha Totakura, 2014/01/24
- Re: [Nix-dev] /dev/shm inconsistency in chroot, Ludovic Courtès, 2014/01/24
- Re: [Nix-dev] /dev/shm inconsistency in chroot, Shea Levy, 2014/01/24