Skip to content

sysexts: Drop some more cruft from sysext images - #4218

Merged
krnowak merged 1 commit into
mainfrom
krnowak/sysext-cruft
Aug 18, 2026
Merged

sysexts: Drop some more cruft from sysext images#4218
krnowak merged 1 commit into
mainfrom
krnowak/sysext-cruft

Conversation

@krnowak

@krnowak krnowak commented Aug 14, 2026

Copy link
Copy Markdown
Member

GCE and AMI OEM images still had debug directories. Incus is about to get an update where two packages (blake3 and xdelta) are installing some cmake stuff.

CI: https://jenkins.flatcar.org/job/container/job/packages_all_arches/543/

GCE and AMI OEM images still had debug directories. Incus is about to
get an update where two packages (blake3 and xdelta) are installing
some cmake stuff.

Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
@krnowak
krnowak requested a review from a team as a code owner August 14, 2026 15:45
Copilot AI lite review requested due to automatic review settings August 14, 2026 15:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes unnecessary development/debug artifacts from OEM and sysext images to keep image size down and avoid shipping build-time cruft (notably debug directories and newly introduced CMake install paths from updated packages).

Changes:

  • GCE OEM: drop /usr/lib/debug from the rootfs during mangling.
  • AMI OEM: introduce a mangle script that drops /usr/lib/debug.
  • Incus sysext: additionally drop /usr/lib64/cmake to handle new package-installed CMake files.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/manglefs.sh Removes debug symbols directory from the GCE OEM rootfs.
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ami/files/manglefs.sh New AMI OEM mangling step to remove debug symbols directory.
build_library/sysext_mangle_flatcar-incus Extends sysext cleanup to remove /usr/lib64/cmake alongside other dev artifacts.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 5 to +7
rootfs=${1}

rm -rf "${rootfs}/usr/lib/debug"
Comment on lines +5 to +7
rootfs="${1}"

rm -rf "${rootfs}/usr/lib/debug"
Comment on lines 5 to +8

pushd "${rootfs}"

rm -rf ./usr/{lib/debug,lib64/pkgconfig,include}/
rm -rf ./usr/{lib/debug,lib64/pkgconfig,include,lib64/cmake}/

@chewi chewi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, although we should probably unify this stuff. It's almost the same in every case.

@krnowak

krnowak commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

Cool, although we should probably unify this stuff. It's almost the same in every case.

Some day. ;)

@krnowak
krnowak merged commit aa51e64 into main Aug 18, 2026
25 of 26 checks passed
@krnowak
krnowak deleted the krnowak/sysext-cruft branch August 18, 2026 12:19
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.

3 participants