Skip to content

rootfs: remove temporary apt sources before image creation - #205

Merged
Keerthi Gowda (keerthi-go) merged 2 commits into
mainfrom
feat/temp-apt-source-cleanup
Jul 29, 2026
Merged

rootfs: remove temporary apt sources before image creation#205
Keerthi Gowda (keerthi-go) merged 2 commits into
mainfrom
feat/temp-apt-source-cleanup

Conversation

@keerthi-go

@keerthi-go Keerthi Gowda (keerthi-go) commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add Step 9.5 in build-rootfs.sh to remove apt source list files for manifest entries marked as temporary (temp: true)
  • keep temporary sources available during chroot package install
  • ensure temporary sources are absent from final rootfs image

Why

  • pkg-oss-staging-repo is needed for dependency resolution during build
  • the staging source should not remain configured on the target device

Delete apt source list files for manifest entries marked temp: true
after chroot package installation and before creating rootfs.img.

This keeps build-time staging repos available during dependency
resolution without leaving them configured on target devices.

Signed-off-by: Keerthi Gowda <kbalehal@qti.qualcomm.com>
- Rename manifest flag from temp to build-only for clarity
- Remove /opt/local-debs and its apt source list, used only for
  --local-debs dependency resolution during build
- Clear var/lib/apt/lists and var/cache/apt/archives from the rootfs

Signed-off-by: Keerthi Gowda <kbalehal@qti.qualcomm.com>
@keerthi-go
Keerthi Gowda (keerthi-go) merged commit a4390b7 into main Jul 29, 2026
20 checks passed
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