Skip to content

ddi: add strip_paths to leave files out of the partitions - #398

Merged
martinpitt merged 1 commit into
mainfrom
ddi-strip-paths
Nov 10, 2026
Merged

martinpitt merged 1 commit into
mainfrom
ddi-strip-paths

Conversation

@mvo5

@mvo5 mvo5 commented Nov 10, 2026

Copy link
Copy Markdown
Member

A file can be dead weight in the partitions and still be needed by a sibling target reading the same layer: the UKI takes the kernel from /usr/lib/modules, so an ops.remove() is not an option. Strip such files from the tree repart copies instead, the way strip_pkgdb already does for the package database.

@martinpitt

Copy link
Copy Markdown
Member

@mvo5 thanks! Can you please add a test, and add SoB to satisfy the "DCO" check?

A file can be dead weight in the partitions and still be needed by a
sibling target reading the same layer: the UKI takes the kernel from
/usr/lib/modules, so an ops.remove() is not an option. Strip such files
from the tree repart copies instead, the way strip_pkgdb already does
for the package database.

Signed-off-by: Michael Vogt <michael@amutable.com>

@martinpitt martinpitt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cheers!

@martinpitt
martinpitt merged commit aa0f2c6 into main Nov 10, 2026
6 checks passed
@martinpitt
martinpitt deleted the ddi-strip-paths branch November 10, 2026 16:39
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