View previous topic :: View next topic |
Author |
Message |
xlnagla n00b
Joined: 10 Jun 2012 Posts: 5
|
Posted: Tue Apr 30, 2019 12:50 am Post subject: Gentoo on WSL: "Unable to unshare: EACCES" |
|
|
Hi everyone,
After a recent world upgrade of a gentoo install on WSL, I've gotten into a state where I can't install anything at all.
My errors are:
Unable to unshare: EACCES
mount: /proc: not mount point or bad option.
Unable to mark /proc slave: 32
Based on this post and this post, I suspect that I have two problems. At least one of them is caused by the fact that WSL does not allow the proc filesystem to be mounted with the slave option enabled. What I'm wondering is
(1) does this reading seem correct, and how might I verify this is the problem?
(2) Why does portage require that /proc is marked slave, and is there any way to get around that requirement?
N.B. disabling the pid-sandbox and network-sandbox features does appear to work around this issue, but it seems like probably too heavyweight an answer.
~xlnagla |
|
Back to top |
|
|
nacitar n00b
Joined: 10 Jun 2011 Posts: 11
|
Posted: Thu May 30, 2019 12:55 am Post subject: |
|
|
On WSL, as you aren't running a linux kernel, you need this in make.conf
Code: | FEATURES="-ipc-sandbox -pid-sandbox -mount-sandbox -network-sandbox" |
https://dev.gentoo.org/~zmedico/portage/doc/man/make.conf.5.html
Note the "Supported only on Linux" description next to the ones I've removed.
I don't think turning this off is too heavyweight really, given that those features won't work anyway. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|