Hi,

Tobias Geerinckx-Rice <[email protected]> writes:


[...]

> ~ λ guix shell -C --expose=/proc=/test coreutils -- echo Elmo 
> world
> guix shell: error: mount: mount "/proc" on 
> "/tmp/guix-directory.zTa1qb//test": Invalid argument
>
>
> Weird!  Clearly, /proc is imbued with magical Kernel magick and 
> simply canno— what?  Oh:
>
> ~ λ mount | grep /proc
> none on /proc type proc (rw,relatime)
> binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc 
> (rw,relatime)
>
>
> Surely not…
>
> ~ λ sudo umount /proc/sys/fs/binfmt_misc
>
> ~ λ guix shell -C --expose=/proc=/test coreutils -- echo Elmo 
> world
> Elmo world
>
> …huh.
>
> So, ‘guix shell --container’ apparently takes issue with rbind'ing 
> mounts, or something like that.
>
> Maybe that's something Guix can handle by bind-mounting the entire 
> subtree itself, or maybe it's a hard permissions error enforced by 
> the kernel.  I don't know.
>
> Someone with podman/Docker/similar experience might.

I'm not useful, but just want to point out that this looks a lot like
https://issues.guix.gnu.org/46782 (guix environment --expose options
cannot be layered onto $PWD).

-- 
Thanks,
Maxim

Reply via email to