Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on WSL: "Unable to unshare: EACCES"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
xlnagla
n00b
n00b


Joined: 10 Jun 2012
Posts: 5

PostPosted: Tue Apr 30, 2019 12:50 am    Post subject: Gentoo on WSL: "Unable to unshare: EACCES" Reply with quote

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
View user's profile Send private message
nacitar
n00b
n00b


Joined: 10 Jun 2011
Posts: 11

PostPosted: Thu May 30, 2019 12:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
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