-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Operation not permitted" when jlink --output refer outside WSL #4917
Comments
In principle would need to see the First thing to try is move everything off |
What is the output of mount command? Any strace output. |
@therealkenc, in my initial description I say:
So, if |
@therealkenc @Biswa96 here the |
Thanks. That strace is not threaded, and as a result the log does not contain an
Look for the I suspect in this case you'll probably find the same behavior in WSL2 9p ( |
Apologize, I am not very familiar with Linux. Here the new strace log generated with your command.
Right now I cant join to Insider program, so I cant try WLS2.
I know it and I have no problems to do it,but I found it strange not to be able to do something so "simple". That's why I opened the issue. |
Thanks for the strace. This is the only
I can't tell for sure that's the fail because there isn't an accompanying "Operation not permitted" string. [That's not on you. Commonly you'd expect to see the error written to The
The Try this for the data point:
Can you also try this (pursuing a hunch):
Do you still see the " |
You are right, that's the problem: I think the process fail when trying to change generated files permissions to 777. Is interesting the fact that all files are created with 777 permissions, so in this case
After do this |
Alright. Create a file
Your mounts should now be user you, not root. Chances better than not this will address the |
If I do unmount/mount manually with that options work fine
|
I found a solution in this closed issue #3994 .
So, in order to load changes made to file
|
Sorry I didn't warn you about the This was a long walk to "enable metadata", which is a common pitfall. I should have guessed from the get-go (maybe I'm getting slow). Happy you're unblocked. |
Don't worry you have helped me a lot. Thanks! |
Windows build number: Microsoft Windows [Version 10.0.18363.657]
Dist: Ubuntu 18.04.4 LTS
$ jlink --add-modules java.base --output /mnt/d/jre-image
Error: java.io.UncheckedIOException: java.nio.file.FileSystemException: /mnt/d/jre-image/bin/java: Operation not permitted
Apparently generated JRE image work fine and it size is the same as if I export it withing WSL file system, but in this case I don't get the error.
This work fine:
$ jlink --add-modules java.base --output ~/jre-image
Logs lxcore-logs.zip
The text was updated successfully, but these errors were encountered: