Add Windows To Go support#1
Open
Advnirr wants to merge 1 commit into
Open
Conversation
Deploy a runnable Windows onto the USB drive (not installer media): GPT layout with a FAT32 ESP + NTFS Windows partition, the selected WIM edition is expanded with wimlib and the UEFI bootloader is taken from the deployed image. - New windows_togo_logic.py generating the deploy script (iso/dev passed as $1/$2, mktemp -d mount points — same hardening as the other scripts). - "Windows To Go" checkbox on the ISO page, shown only for Windows; it forces GPT/UEFI and hides the partition-scheme selector. - Summary and worker honour the new mode; fully localized (EN/RU). - Ship windows_togo_logic.py in PKGBUILD. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Summary
Adds a Windows To Go mode: instead of building Windows installer media, Lufux can now deploy a runnable, portable Windows onto the USB drive that boots and runs directly from the stick.
How it works
install.wim/install.esdedition is expanded straight onto the NTFS partition withwimlib-imagex apply(no FAT32 4 GiB split needed — NTFS holds the expanded image).bootmgfw.efi) is copied from the deployed image to the ESP (/EFI/Boot/bootx64.efi+/EFI/Microsoft/Boot/), boot resources are copied, and a BCD store is seeded from the image'sBCD-Template.No new dependencies — it reuses the existing toolset (
wimlib,parted,dosfstools,ntfs-3g).UI / UX
Security
The new deploy script follows the same hardening as the rest of the project: ISO/device paths are passed as positional parameters (
$1/$2, never interpolated/shell-evaluated), and mount points usemktemp -d(no predictable/tmppaths).Testing
bash -non the generated script (EN + RU) — OK.bcdboot, so this is the area most likely to need refinement.🤖 Generated with Claude Code