Repository navigation
Conversation
Add a ninth guided-setup option and `lfa install --iso/--rootfs` so a user-supplied userland can run under proot next to the built-in distros. - Accept rootfs tarballs, extracted directories, live ISOs and raw images; extract the live squashfs (including Fedora's nested ext4) with unsquashfs when available and 7z as the fallback. - Check the CPU architecture before installing, since proot cannot emulate another CPU. - Read /etc/os-release, map the image to a package-manager family and reuse the normal desktop/software setup. Unknown families install terminal-only instead of calling a package manager that is absent. - Stage the extracted tree during guided setup so the family is known before the desktop and software menus, then move it into the proot-distro layout. Clean the stage and temporary extraction directories on interrupt. - Reject tar members with absolute or parent-relative paths, and handle zipped rootfs trees with a single top-level directory. - Record CUSTOM_SOURCE, CUSTOM_NAME and CUSTOM_ID in the guest config. Tests cover a known-family tarball, an unknown family, a live ISO, wrong-architecture refusal, CLI validation and the guided flow. The host suite is now 917 checks.
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.
What does this change?
Adds custom Linux userland installs. Guided setup gains option 9, and
lfa installgains--iso PATHand--rootfs PATH. A rootfs tarball, anextracted directory, or a live ISO is unpacked and runs under proot next to
the eight built-in distros.
Why?
The installer only offered the eight proot-distro aliases, and the README
explicitly said arbitrary rootfs tarballs were unsupported. Users with an
arm64 live ISO or a vendor rootfs had no supported path.
How was it tested?
./tests/test-all.shpasses locally (PASS=917 FAIL=0)shellcheck -S warning install_linux.sh tests/test-all.shis cleanDevice / distro / backend used: host suite only; no on-device custom-ISO run yet.
The new
Y12-Y12ftests cover a known-family tarball, an unknown packagemanager, a live ISO with a squashfs, wrong-architecture refusal, CLI source
validation, and the guided custom flow.
Checklist
README.mdnumbers still match the suite (the suite enforces this)