Skip to content

Conversation

bjordiscollaku
Copy link
Contributor

This update introduces a structured mechanism to track and record package changes during the build process inside the chroot environment. Key enhancements include:

  • Captures the base system package list before custom installations using dpkg-query, saved as _base.manifest.
  • Captures the post-install package list after firmware, kernel, and manifest packages are installed.
  • Computes the delta between base and post-install lists to identify custom installed packages.
  • Saves the delta as custom_installed_packages_.manifest for audit and reproducibility.
  • Preserves the base manifest for reference; only intermediate files are cleaned up.
  • Improves logging clarity by replacing “package delta” terminology with “custom installed packages”.
  • Ensures all manifest files are copied out of the chroot to the host system for deployment.

This change improves traceability of system modifications and supports reproducible builds by clearly documenting package-level changes introduced during customization.

This update introduces a structured mechanism to track and record package changes during the build process inside the chroot environment. Key enhancements include:

- Captures the base system package list before custom installations using `dpkg-query`, saved as <codename>_base.manifest.
- Captures the post-install package list after firmware, kernel, and manifest packages are installed.
- Computes the delta between base and post-install lists to identify custom installed packages.
- Saves the delta as custom_installed_packages_<date>.manifest for audit and reproducibility.
- Preserves the base manifest for reference; only intermediate files are cleaned up.
- Improves logging clarity by replacing “package delta” terminology with “custom installed packages”.
- Ensures all manifest files are copied out of the chroot to the host system for deployment.

This change improves traceability of system modifications and supports reproducible builds by clearly documenting package-level changes introduced during customization.

Signed-off-by: Bjordis Collaku <[email protected]>
@simonbeaudoin0935 simonbeaudoin0935 merged commit 8188bf1 into main Oct 10, 2025
6 checks passed
@simonbeaudoin0935 simonbeaudoin0935 deleted the feature/package-manifest-tracking branch October 14, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants