Repository navigation
fix(initrd): resolve transitive kernel module deps; reorganize release artifacts by host - #1
Merged
Merged
Conversation
… by host
The previous KWANT regex missed scsi_common (split out of scsi_mod in modern
Debian kernels), scsi_transport_fc (needed by hv_storvsc), and crc16 (needed
by ext4). Switching to modinfo-based dep resolution captures all transitive
deps automatically.
Also reorganize release artifacts by host platform:
- tokimo-linux-rootfs-{x86_64,arm64}.tar.zst (Linux/macOS)
- tokimo-linux-rootfs-x86_64.vhdx.zip (Windows HCS)
- tokimo-linux-kernel-{x86_64,arm64}.tar.zst (Windows/macOS)
Each with .sha256. README documents per-host download matrix.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…rs after The build runs on overseas GitHub Actions runners. Switching apt/npm/pip to TUNA/npmmirror BEFORE the install made every package fetch slow. Move the mirror config writes to AFTER all installs are done so: - CI fetches from fast upstream mirrors - The shipped image still has China mirrors configured for end-users Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.
Why
Two related issues with the rootfs build:
1. initrd kernel module deps were incomplete
The Debian generic kernel splits helper symbols into separate modules. The old grep regex only pulled the modules we asked for by name, not their dependencies. That left
scsi_mod,hv_storvsc,sd_mod, andext4unable to load in the Windows HCS micro-VM, so the guest powered off withno shared filesystem available.Specifically missing:
scsi_common— symbols split out ofscsi_modin 6.x kernels.scsi_transport_fc— required byhv_storvsc.crc16— required byext4.Fix: resolve the transitive closure via
modinfo -F dependsand bundle every dependency module automatically.2. Release artifact names didn't match how hosts consume them
The sandbox is fundamentally a Linux sandbox. The host platform only changes how the Linux image is launched (bwrap / VZ / HCS). Names now reflect that:
tokimo-linux-rootfs-x86_64.tar.zsttokimo-linux-kernel-x86_64.tar.zst+tokimo-linux-rootfs-x86_64.vhdx.ziptokimo-linux-kernel-arm64.tar.zst+tokimo-linux-rootfs-arm64.tar.zstEach artifact ships with a matching
.sha256. README has the same table.Verified locally
Reproduced and fixed on my Windows box using a local Docker minimal-build copy of this script. After the fix all 14
tokimo-package-sandboxtests/session.rscases pass against an HCS micro-VM.Behavior change
Existing artifact filenames (
tokimo-{arch}-boot.tar.zstetc.) are removed; consumers (currently just tokimo-package-sandboxscripts/fetch-vm.ps1) will need to be updated to the new names.