-
Notifications
You must be signed in to change notification settings - Fork 824
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
Alpine Linux #2372
Comments
Couldn't tell you about WSL-Distribution-Switcher, but Alpine proper seems okay as far as syscalls go (at least to a first order). From stock WSL Xenial (Legacy Edition™):
I got a Tried a few of the usual suspects with no immediately obvious faceplants. Nice to see
|
Thanks for the answer. I'll definitely try. Now I'm afraid to break the working WSL. |
I can not answer your questions; I do remember the BashOnWindows team having said that side-by-side installations should work fine. I have not known about https://github.com/RoliSoft/WSL-Distribution-Switcher yet. Being cautious myself, I'll gladly let others test out things, so I thumbs up to your effort Line117! Please keep others also notified, the more heroes first went through the path, the easier it may be for others to follow. :) |
@therealkenc: Aah, understood. I thought this was a Linux replacement.
I will look for other solutions. |
If the Alpine folks are interested in having their distribution in the store they should reach out to @bitcrazed, we'd love to have another distro in the store. |
Rather than the "reach out" system, it would be nice to see a blog post detailing the exercise involved. Its Linux. Since the beginning, all you have needed to create a Linux distribution fork is a Desktop UX grudge and some bandwidth. And now you guys have volunteered the bandwidth part. Interesting times. |
Posted by forum: https://forum.alpinelinux.org/forum/general-discussion/wsl-windows |
bash:
cmd
Error: 0x80070002 :( |
@therealkenc - That's a good idea for a blog post, perhaps something @bitcrazed is already considering. |
I think we mostly just need one bit. What is the accepted mechanism for putting files with the WSL extended attributes into an NTFS directory from WinRT? WSL-Distribution-Switcher does it by hand, but you guys wouldn't expect the Ubuntu, SUSE, Redhat, people to code that up themselves in duplicate. So what is the tool, library, or source code that performs this task? |
@benhillis - It looks like the problem with Alpine is that WSL Ubuntu/SUSE:
Alpine in a chroot on WSL:
Goes without saying Alpine's |
@therealkenc - statically linking the init binary is something we want to do, the only limitation is a legal / licensing one. We need approval from the owners of libraries that we statically link against, we're in the middle of that conversation. |
@benhillis - Thanks. Yeah I almost edited my post to say that explicitly; in my head I took as given you can't use glibc. Maybe fire an email off to legal with the musl license to get it on your team's approved list. It is standard MIT. Musl is very static link friendly. In the mean time an intermediate step that is doable without the "meetings" is to make WSL This is the full list of missing symbols.
[*] ...or some renaming, or something. You get my drift. |
Eight days of crickets on this pretty straightforward question. An even more basic question: how are you getting |
@therealkenc Based on reverse engineering the
So in the end, the setting of the extended attributes is abstracted away to whichever process |
@RoliSoft - Much appreciated. It was pretty clear they were working off a source template but I didn't pick it apart; great work. I started down the path of forking libarchive and transplanting in your ntfsea bits. Which is pretty straightforward because they've already isolated the cross-platform sensitive bits. But then I started looking at the UWP APIs at my disposal and realised the resulting code can never make it into the MS Store. |
Now that init is statically linked I've verified that alpine Linux works on WSL. Going to go ahead and close this out as a duplicate of #229. |
@therealkenc et. al. Building a store-delivered distro for WSL isn't rocket science, but nor is it trivial. We now have a relatively well tested process having run through it several times with Canonical, SUSE and Fedora, and would like to expand the range of distro's available via the store in the coming months. This does require a relationship with our team, however, due to WSL store packages being Centennial and having a couple of small hoops that publishers need to jump through. We're already talking with a couple of distro vendors, and hope to have news by years' end. Keep your eyes on our blog and my Twitter account :) |
@bitcrazed Just incase, Could we get a specifications. Atleast enough to side load our distros. This could help for obscure distros. |
We will be publishing details of how to create distros, but ask for your patience while we work through the process with our current partners. This will help make sure that the process is solid and reliable, before broadening access. |
It seems that both PS. I'm on Win10 build 17093. |
And the documentation of
But bash is executed regardless of the default shell specified in |
Thanks for the information. But commands executed via And may I ask if this feature of |
@DDoSolitary Good call, we should switch that API over to using /bin/sh. |
After the switch, the documentation for [Worth observing as an aside, again, that |
The default shell issue should be addressed in the Skip-ahead 17627 build. |
Thanks for respecting user freedom to chose their shell: dash (new ubuntus), csh (netbsd), ash (alpine) or the best sh (everywhere!). There is a new emerging option pwsh by the dint of https://github.com/powershell/powershell. imo, Alpine Linux is worth adding in Windows Store as officially recognized distribution: https://docs.microsoft.com/en-us/windows/wsl/install-win10. .NET Core team has worked hard to support Alpine Linux end to end for the upcoming version of .NET Core dotnet/core#1076. PowerShell team is working on it as we speak to achieve |
I did not even expect that my simple question will add to you so much work. |
I like musl a lot. But heads up on #830 (message) since it came up recently. On WSL with Alpine, |
Thanks for the heads up. If i am to venture a guess, I'd say the guys who are fixing strtod et al. on Alpine and WSL side are not the same guys who look after the Windows Store packaging stuff. Both efforts can go along concurrently. :) |
About Alpine.
nginx 1.14.0 / mariadb 10.2 / php 7.2
top I can't solve two problems so far:
I know that this is not a Alpine forum. I just wrote to those who are interested. |
That silmilar problem also occurs in NixOS. When I chrooted NixOS from Ubuntu it creates a folder |
That's basically #39 (a rare two-digits), where the expected (and missing) filesystem skeleton was |
php-fpm service works. I made a error in the configuration file and did not see it. I solved the problem with "/run/openrc":
For the test: Main UbuntuWSL /etc/nginx/conf.d/site.conf
AlpineWSL /etc/nginx/conf.d/site.conf
Windows hosts
Super :) |
At the moment there is built-in Alpine distro:
Also you can import OCI/Docker or LXC rootfs as WSL 1/2 distro:
|
The first one didn't work, had to install from Store and there's a weird network issue where network calls don't work the first time. |
Excuse me, did anyone install Alpine Linux?
Please write a solution if you know.
I'm interested to see it.
Installation from https://github.com/RoliSoft/WSL-Distribution-Switcher does not work. Bash cant't run.
The text was updated successfully, but these errors were encountered: