-
Notifications
You must be signed in to change notification settings - Fork 798
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
Add .xz archive support to wsl.exe --import to improve microsoft/WSL-DistroLauncher #6056
Comments
I haven't tried importing xz tarball yet, but I tried zstd tarball and WSL can import that successfully. zstd is supposed to be superior compared to xz, the compressed tarball may not be smaller, but the compression/decompression speed is better. You can also trade speed with space by increasing the compression level (e.g: My
I use Windows 11 btw, don't know why Windows version is 10 here 🤷 |
I tried the rockylinux PS C:\Users\lucas\git\lucastheisen-dev-bootstrap> wsl --version
WSL version: 1.1.6.0
Kernel version: 5.15.90.1
WSLg version: 1.0.50
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.1413 This issue can probably be closed out, but I would suggest updating the |
I can confirm importing For zstd, you can export like ( cmd /c "wsl --export void-glibc - | zstd -T4 -o void-glibc-$(Get-Date -UFormat "%Y%m%d").tar.zst" |
When using microsoft/WSL-DistroLauncher, an archive of the distro filesystem must be provided at install.tar and can be GZIP compressed, install.tar.gz or install.tgz
It would improve ease of use (archives are already compressed with XZ) plus reduce storage and bandwidth requirements if XZ compressed can be supported by the import command, users modifying microsoft/WSL-DistroLauncher wouldn't then be bound to using on GZIP compression
A ~1GiB install.tar is nearly 50% smaller when compressed with xz versus gzip (both at -9)
The text was updated successfully, but these errors were encountered: