Repository navigation
feat(guest): add an Arch Linux ARM distro image - #58
Open
swarooppatilx wants to merge 3 commits into
Open
swarooppatilx wants to merge 3 commits into
swarooppatilx wants to merge 3 commits into
Conversation
The Arch Linux ARM root file system has directories without write permission (/etc/ca-certificates/extracted/cadir is 0555), which an unprivileged tar cannot extract into: restore directory modes after their contents with --delay-directory-restore. The erofs read-back extracts exact modes, so diff could not open a file the owner cannot read (dbus-daemon-launch-helper, 4710): make the copy owner-readable before comparing.
Build the Arch Linux ARM generic aarch64 root file system as a distro image, upgraded to the mirror's current packages in a boot of the tree on the base bundle, as Alpine's doas and Debian's apt cache already are: the kernel and firmware packages go, then pacman -Syu and the image's own packages, and what changed in the overlay's upper layer is copied back into the tree. The init is Debian's kw-init without the services. pacman's keyring is made at the first boot (its master key is per machine), downloads run without the Landlock sandbox this kernel lacks, and the image has sudo, the user, a locked root, and the README like the others. A command to package map built from the repositories' file lists backs the shell's command-not-found install (kw-pacman-install), as Debian's does. The packages are not pinned, since the mirror keeps only current ones: an image is as current as its build and is not reproducible. There is no Wayland desktop and no guest GL, Vulkan or VA-API yet. test/distro.test.ts runs its checks on Arch, the release workflow expects the third image, and the notes that named two distros are corrected.
Teach the launcher a third distro. Its install step is pacman -S, tried again after pacman -Sy when the image's package lists name a version the mirror dropped. It waits while another pacman runs, saying so, and removes a lock that no pacman holds before each try, as a killed pacman leaves one behind. A progress parser reads pacman's output on a pipe, where it prints "installing NAME..." without a count. Name Arch packages for the terminal apps that have a counterpart: htop, mc, sshfs, tmux, git, go, neovim, rust, python, dos, radio, and the node, bun, claude and fx apps, which download their own binaries. The package names are checked against the repositories; tmux with htop, Midnight Commander and Neovim were run in the page. The GUI, game and browser apps stay Debian-only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Arch Linux ARM as a third distro image beside Alpine and Debian.
What changed
Testing
Not in this PR
Notes for review
URL of my fork deployment : https://unkernel.swarooppatil.com
Refs #48
Screenshot