Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/DistributionInfo.json
/imagetag.txt
/root/usr/lib/wsl/terminal-profile.json
/rootfs/
12 changes: 6 additions & 6 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ docker rmi "archwsl:${tag}"

# Apply configuration file recommendations
# https://learn.microsoft.com/windows/wsl/build-custom-distro#configuration-file-recommendations
tar --delete -f archlinux.tar etc/resolv.conf

# Create the tar file
# https://learn.microsoft.com/windows/wsl/build-custom-distro#create-the-tar-file
gzip --best --force archlinux.tar
mv archlinux.tar.gz archlinux.wsl
[[ -d rootfs ]] && rm -rf rootfs
mkdir rootfs
pushd rootfs || exit 1
fakeroot bash -c "tar -xf ../archlinux.tar && rm -f etc/resolv.conf && tar --numeric-owner --absolute-names -c -- * | gzip --best >../archlinux.wsl"
popd || exit 1
rm archlinux.tar