Skip to content

fix: document exact BusyBox and kernel provenance - #47

Merged
Iky969 merged 1 commit into
mainfrom
fix/phase2-provenance
Nov 30, 2026
Merged

Iky969 merged 1 commit into
mainfrom
fix/phase2-provenance

Conversation

@Iky969

@Iky969 Iky969 commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

Phase 2 licensing structure fixes from the user's audit follow-up.

  • Investigated packages/busybox/build.sh: the /bin/busybox fallback is real, and the committed binary at packages/busybox/x/bin/busybox is actually BusyBox v1.37.0 (Ubuntu 1:1.37.0-7ubuntu1), not the 1.36.1 source build previously claimed.
  • Added the exact Ubuntu source package (orig tarball, upstream signature, Debian/Ubuntu packaging tarball, DSC) as a new release asset: busybox-ubuntu-1.37.0-7ubuntu1-source.tar.gz.
  • Added packages/kernel/PROVENANCE with kernel URLs, SHA-256 digests, Alpine aports commit 6fb194e3, applied Alpine patches, config name, and the release bundle link.
  • Added canonical packages/busybox/config-1.36.1 and made build-rootfs.sh consume it instead of silently regenerating defconfig.
  • Corrected THIRD_PARTY_LICENSES.md, NOTICE, and SOURCE-OFFER.md so both BusyBox variants are accurately described and no recipient is asked to source code separately.
  • Updated release v1.2.1-source notes with the new Ubuntu source asset and checksum.

Verification

  • git diff --check, sh -n scripts/build-rootfs.sh, make lint pass.
  • python3 scripts/test-ci-workflow.py: 9 passed, 0 failed.
  • sh scripts/test-build-rootfs.sh: 52 passed, 0 failed after moving a stale local distro/cache/storage-modules cache aside.
  • Source-build smoke test with BUSYBOX_MODE=source and the committed config: log shows using committed config-1.36.1; produced binary identifies as BusyBox v1.36.1.
  • New release asset URL returns HTTP 200.

Notes

No merge is requested yet; this PR is for user audit.

-Kai

Summary by CodeRabbit

  • Documentation
    • Clarified where to find corresponding source for the included BusyBox versions and Linux kernel, including release assets and a written offer.
    • Added provenance details for the shipped kernel, including its upstream version, build inputs, patches, and checksums.
    • Updated redistribution notices to identify the license and source documents to keep with the image.
  • Build Improvements
    • BusyBox builds can now use a version-specific configuration when available, with a default configuration fallback.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Build configuration and source records

Layer / File(s) Summary
BusyBox configuration selection
packages/busybox/config-1.36.1, scripts/build-rootfs.sh
Adds a BusyBox 1.36.1 configuration. When the source tree has no .config, the build uses the matching versioned configuration if available and otherwise runs make defconfig.
Source offers and provenance
SOURCE-OFFER.md, packages/kernel/PROVENANCE, THIRD_PARTY_LICENSES.md, NOTICE
Documents the Ubuntu-built BusyBox 1.37.0 and source-built BusyBox 1.36.1 variants and their sources. Adds Linux kernel source provenance and availability details, and updates redistributor notices.

Possibly related PRs

  • Iky969/sane-linux#46: Adds the source offer and license documentation that this PR extends with details for both BusyBox variants and the kernel source.

Suggested reviewers: fyxm969

Change: Other

Merge Risk: Minimal · up to 49f51

This PR adds a committed BusyBox 1.36.1 build configuration and updates the source-offer, license and kernel provenance documents. No defects were found in the build change. The only CI failure was a transient Ubuntu mirror error during dependency installation, so the job should be re-run. The author has not yet asked for a merge.

Architecture risk: Low · up to 49f51

The change affects 6 source areas.

Redistributors must retain the listed license and source-offer documents with the image, and can use the documented BusyBox release sources or Linux kernel written source offer to locate corresponding source.

Changed areas: scripts, NOTICE, packages/busybox, packages/kernel, SOURCE-OFFER.md, THIRD_PARTY_LICENSES.md

Review details

Systems and components

  • observed — 1 changed file mapped to scripts.
  • observed — 1 changed file mapped to NOTICE.
  • observed — packages/busybox (library) was modified; 1 changed file maps to changed impact.
  • observed — packages/kernel (library) was modified; 1 changed file maps to changed impact.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a0b6907-a096-427e-9cf9-76ea1de485c6
Commits

Reviewing files that changed from the base of the PR and between 308e534 and 49f517f.

Files selected for processing: 6

  • NOTICE
  • SOURCE-OFFER.md
  • THIRD_PARTY_LICENSES.md
  • packages/busybox/config-1.36.1
  • packages/kernel/PROVENANCE
  • scripts/build-rootfs.sh

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@kilo-code-bot

kilo-code-bot Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Code Review Roast 🔥

Verdict: No Issues Found | Recommendation: Merge

Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything.

The only executable change is the committed-config path in scripts/build-rootfs.sh, and it even keeps the CONFIG_STATIC/CONFIG_TC enforcement and the defconfig fallback intact — so the one place that could have quietly broken the static build didn't. The rest is licensing/provenance docs that are internally consistent, plus a generated BusyBox config I'm contractually forbidden from roasting.

📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are.

Files Reviewed (5 files)
  • NOTICE - 0 issues
  • SOURCE-OFFER.md - 0 issues
  • THIRD_PARTY_LICENSES.md - 0 issues
  • packages/kernel/PROVENANCE - 0 issues
  • scripts/build-rootfs.sh - 0 issues
  • packages/busybox/config-1.36.1 - generated file, not reviewed

Reviewed by free · Input: 63.2K · Output: 3K · Cached: 247.8K

@Iky969 Iky969 added the documentation Improvements or additions to documentation label Nov 30, 2026
@Iky969
Iky969 merged commit 01021f7 into main Nov 30, 2026
14 of 15 checks passed
@Iky969
Iky969 deleted the fix/phase2-provenance branch November 30, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant