diff options
author | Ludovic Courtès <[email protected]> | 2025-01-14 17:58:12 +0100 |
---|---|---|
committer | Ludovic Courtès <[email protected]> | 2025-01-27 14:42:41 +0100 |
commit | 2f3b309f37b3a8bfeaccf54ac1b0740a849a8b6f (patch) | |
tree | 832cf46899930855752ccbef6b724a922ef0637a /manifest.scm | |
parent | 8e946568eabba86692b4f7d10748dd59cdd39d38 (diff) |
linux-container: Ignore EPERM when attempting to mount /sys.
Fixes <https://issues.guix.gnu.org/61690>.
Until now, this would work:
guix shell --no-cwd -CWP -- guix shell -C coreutils -- ls -R /home
… but this would not:
$ guix shell --no-cwd -CWPN -- guix shell -C coreutils -- ls -R /home
guix shell: error: mount: mount "none" on "/tmp/guix-directory.Wnc2OI/sys": Operation not permitted
This is annoying and hardly understandable. Since we already disable
/sys mounts when sharing the global network namespace is asked (as in
‘guix shell -CN‘), for the very same reason, we can just as well disable
/sys mounts anytime it fails with EPERM.
* gnu/build/linux-container.scm (mount-file-systems): Silently ignore
EPERM when attempting to mount /sys.
Change-Id: If85b1d703ab58a98ea9873f4f8fed71a06b7aa63
Diffstat (limited to 'manifest.scm')
0 files changed, 0 insertions, 0 deletions