Skip to content

Add Arch Linux official WSL image to the distribution manifest - #12818

Merged
Blue (OneBlue) merged 1 commit into
microsoft:masterfrom
Antiz96:Add_archlinux_image
Apr 14, 2025
Merged

Add Arch Linux official WSL image to the distribution manifest#12818
Blue (OneBlue) merged 1 commit into
microsoft:masterfrom
Antiz96:Add_archlinux_image

Conversation

@Antiz96

Copy link
Copy Markdown

As discussed in #12551, we (Arch Linux) now provide an official WSL image. This commit adds it to the Microsoft WSL's official distribution manifest, allowing users to pull and install it in an automated way (wsl --install archlinux).

Closes #12551

@Antiz96

Copy link
Copy Markdown
Author

As said in #12551 (comment), the future monthly pull requests opening should be automated on our side.

I remain available if needed! :)

@Antiz96

Copy link
Copy Markdown
Author

Our image is compressed with zstd (.tar.zst) which the distributions/validate-modern.py script doesn't seem to support currently.
If that's of interest, I can look at adding support for it to the script :)

@OneBlue

Copy link
Copy Markdown
Collaborator

Thank you for doing this Robin Candau (@Antiz96).

Unfortunately WSL indeed doesn't officially support zstd compression. The version of bsdtar we use in WSL2 happens to support it, but WSL1 doesn't. For instance, if I try to install Archlinux in WSL1 mode I get:

λ wsl --install --from-file  archlinux-2025.04.01.123847.wsl --version 1
Installing: archlinux-2025.04.01.123847.wsl
bsdtar: Error opening archive: Unrecognized archive format ]
Importing the distribution failed.
Error code: Wsl/Service/RegisterDistro/WSL_E_IMPORT_FAILED

We usually recommend distributions to compress with gz, or xz. Would that be an option for Archlinux ?

@Antiz96

Robin Candau (Antiz96) commented Apr 14, 2025

Copy link
Copy Markdown
Author

Unfortunately WSL indeed doesn't officially support zstd compression.

Oh, I wasn't aware of this. Sorry 🤭

We usually recommend distributions to compress with gz, or xz. Would that be an option for Archlinux ?

Yes, that should be doable :)
I will adapt our build system accordingly and update this PR with an image compressed with either gz or xz shortly.

As discussed in #12551, we (Arch Linux) now [provide an official WSL image](https://rfc.archlinux.page/0050-arch-linux-wsl-image/). This commit adds it to the Microsoft WSL's official distribution manifest, allowing users to pull and install it in an automated way (`wsl --install archlinux`).

Closes #12551
@Antiz96

Robin Candau (Antiz96) commented Apr 14, 2025

Copy link
Copy Markdown
Author

PR updated with an image compressed with xz :)

@OneBlue Blue (OneBlue) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@craigloewen-msft

Copy link
Copy Markdown
Member

LGTM too! :) Thanks for the awesome contribution!!

@OneBlue
Blue (OneBlue) merged commit 04f0a13 into microsoft:master Apr 14, 2025
Peter Jung (ptr1337) pushed a commit to CachyOS/cachyos-wsl that referenced this pull request May 17, 2025
Peter Jung (ptr1337) pushed a commit to CachyOS/cachyos-wsl that referenced this pull request May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Referencing an official WSL image for Arch Linux and acceptable pull request frequency for the WSL team

3 participants