-
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
Problem with tmpfs, /dev/shm does not exist or is not writable, there is no support for shared memory #16
Comments
Thanks for reporting the issue. We recently added tmpfs mounts for run (e.g. /run, /run/lock, /run/user, and /run/shm) with permissions that match native Ubuntu. This change should be out for insiders soon. Can you please share out a simplified repro for bitbake so we can check if it is resolved? We can also try out the scenarios in the referenced issues to make sure they are resolved. |
@stehufntdev for an easy test of /dev/shm see #135 |
Thanks @trondhindenes I saw that one as well, and will reply off it shortly. Since /dev/shm is just a tmpfs mount I wanted to see if bitbake had different dependencies from python. |
Thank You for looking into this problem. I made a little simplified repro for that issue. First You need to add not root linux user. Then You need to install packages:
If all packages are installed execute:
Then (failing bitbake):
That's all. I allways get:
|
Thanks for providing the repro. Just tried this locally and it seems to make it a bit further but reports a failure missing support in inotify: _test@TEST-6:~/build$ bitbake -c menuconfig core-image-minimal From the strace: 12183 inotify_add_watch(7, "/home/test/build/conf", IN_MODIFY|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF) = -1 EINVAL (Invalid argument) If it looks like this is still broken, can you please add it to our [UserVoice](https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash page) page so we can prioritize? Thanks again for trying out WSL! |
@stehufntdev Thank You for checking this issue. Edit: found it: |
I just added at UserVoice request for filesystem watchers & inotify. |
Closing since this is fixed. |
Are we certain this has been addressed? I've tried Yocto (bitbake) on computers running both Insider Fast and Anniversary Update, and in both cases, it fails with Getting Yocto to work on Services for Linux would be huge -- I'm sure there are a ton of embedded programmers like me who keep a Linux VM around for the sole purpose of building embedded Linux images... |
You are seeing #216. Also, some even have a dedicated machine just for Yocto... |
@jaydcarlson -- the way the folks at Microsoft are judging how huge a thing is, is (in part) by how many people have indicated that it's important to them. The way they've asked people to do that is through the UserVoice page. So if there's a community out there that this matters a lot to, y'all should go make some noise over there. |
Hi!
It's look like there is no proper support for shared memory.
I'm trying to compile linux Yocto image for Embedded ARM freescale i.mx6 UL based SOM.
When I trying to build image using bitbake it always returns:
/dev/shm does not exist or is not writable
There ins no difference if I run bitbake as root or as sudo user.
Is there in Linux Subsystem for Windows properly implemented tmpfs?
There is no info about tmpfs in fstab.
stat /dev/shm on WLS returns:
stat /dev/shm
File: ‘/dev/shm’ -> ‘/run/shm’
Size: 0 Blocks: 1 IO Block: 512 symbolic link
Device: 0h/0d Inode: 0 Links: 2
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-04-07 11:36:10.539632000 +0000
Modify: 2016-04-07 11:36:10.000000000 +0000
Change: 2016-04-07 11:36:10.000000000 +0000
Birth: -
File: ‘/run/shm’
Size: 0 Blocks: 0 IO Block: 512 regular empty file
Device: 0h/0d Inode: 13510798882223683 Links: 1
Access: (0666/-rw-rw-rw-) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-04-07 11:40:06.680796000 +0000
Modify: 2016-04-07 11:40:06.680796000 +0000
Change: 2016-04-07 11:40:06.680796000 +0000
Birth: -
On linux machine returns:
File: '/dev/shm'
Size: 40 Blocks: 0 IO Block: 4096 directory
Device: 12h/18d Inode: 11798 Links: 2
Access: (1777/drwxrwxrwt) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-02-22 14:40:14.096000000 +0000
Modify: 2016-02-22 14:40:14.096000000 +0000
Change: 2016-02-22 14:40:14.096000000 +0000
Birth: -
On linux it is directory with access 17777 but on WLS it is file with access 0666.
System: Windows Insider Preview build 14316.rs1_release
The text was updated successfully, but these errors were encountered: