Windows Goodbye: One Command From Windows to awnix, No Reboot
The verdict: if you are on Windows and want awnix today, run one script. It installs awnix as its own WSL distro, checks every byte it downloads, and never touches how your PC boots. Removing it is one flag.
powershell -ExecutionPolicy Bypass -File .\WindowsGoodbye.ps1 # install + open
.\WindowsGoodbye.ps1 -DryRun # check, change nothing
.\WindowsGoodbye.ps1 -Uninstall # remove it
Source, MIT: github.com/Aitherium/windowsgoodbye. Site: goodbyewindows.sh.
What the script does, in order
| step | what happens | what can stop it |
|---|---|---|
| 1 | checks wsl.exe exists and wsl --status answers | WSL missing: it prints the one admin command (wsl --install --no-distribution) and stops |
| 2 | reads the latest release of the repo from the GitHub API | no awnix-rootfs.tar.gz.part* or no SHA256SUMS in it |
| 3 | downloads each part and hashes it with Get-FileHash -Algorithm SHA256 | any part that does not match SHA256SUMS: nothing is installed |
| 4 | joins the parts into one .tar.gz | |
| 5 | wsl --import awnix %LOCALAPPDATA%\awnix\wsl <tar.gz> --version 2 | import error, shown verbatim |
| 6 | wsl -d awnix -- cat /etc/os-release | the distro does not start: it tells you to run -Uninstall |
What it never does: write a boot entry, change boot order, reboot, install a driver, or ask
for admin. -Uninstall is wsl --unregister awnix.
Why the filesystem is built on Linux, not on your PC
awnix ships as an OCI image (ghcr.io/aitherium/awnix). An OCI image is a stack of tar
layers. A later layer deletes a file from an earlier one with a whiteout entry
(.wh.<name>), and empties a whole directory with an opaque marker (.wh..wh..opq).
Turning the stack into one root filesystem means applying those rules in order.
Windows' built-in tar.exe cannot do it. Extracting just the awnix base layer with it
loses 2,006 files and 768 symlinks. NTFS cannot hold Linux symlinks or
hardlinks, so they were silently dropped. A distro imported from that tree boots with holes in it.
So the flattening moved to Linux, once, in CI, where the container engine applies whiteouts correctly. The release workflow is short:
- name: Pull and flatten (linux/amd64)
run: |
docker pull --platform linux/amd64 "$IMAGE"
cid=$(docker create --platform linux/amd64 "$IMAGE" /bin/true)
docker export "$cid" -o awnix-rootfs.tar
- name: Prove the tarball boots (import it and run it)
run: |
docker import awnix-rootfs.tar awnix-wsl-check:latest
docker run --rm awnix-wsl-check:latest cat /etc/os-release | tee os-release.txt
grep -q '^ID=' os-release.txt
docker run --rm awnix-wsl-check:latest sh -c 'test -x /usr/bin/bash && test -d /usr/lib/systemd'
docker export writes the container's merged view: whiteouts applied, symlinks and
hardlinks intact. The tarball is then imported back as an image and run. If it does not
report an OS, carry bash and systemd, the release is not published. Then it is gzipped,
split under GitHub's 2 GiB asset limit, and hashed into SHA256SUMS.
The Windows side therefore needs no Python and no layer logic. It downloads one verified
file. (tools/merge_layers.py in the repo is a pure-Python merger for building without
Docker, with five offline tests.)
The test that installs it on a real Windows machine
A script that only parses is not a tested installer. windows-install.yml runs after every
release on GitHub's windows-latest machine and does the real thing:
| step | check |
|---|---|
| enable WSL | wsl --install --no-distribution |
| dry run | the script finds the release and prints its plan |
| install | the real download, checksum, join and wsl --import |
| it starts | /etc/os-release reports an OS; /usr/bin/bash is executable |
| uninstall | -Uninstall, then wsl --list must not show the distro |
The first full run (44415065911) passed every step. One honest limit: GitHub's Windows
machines cannot nest WSL2, so CI imports with -WslVersion 1. That flag exists for CI only;
on your PC the default is WSL2.
WSL2 is covered a different way. The machine that runs the entire AitherOS fleet runs this
same awnix as a WSL2 distro, all day. Its /etc/os-release is identical to the
os-release.txt the release publishes:
NAME="awnix"
ID=centos
VERSION_ID="9"
PRETTY_NAME="awnix (built on CentOS Stream 9)"
Needs
Windows 10 or 11 on x86_64, WSL2, PowerShell 5.1 or later, and about 1.5 GB of download.
Not in this version
Rebooting into awnix on bare metal and a Hyper-V install. For a USB stick or dual boot, the awnix ISO is on the awnix releases page.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.