Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix globbing with exclude with regex #2654

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

alyssarosenzweig
Copy link
Contributor

Changes proposed in this pull request:

This fixes a collection of bugs when producing erofs images.

On one hand, this ensures that an exclude of /sys doesn't accidentally match /lib/libsystemd.so, only /sys/whatever.

On the other hand, this ensures that /dev/* does match /dev/vda and not just /dev///////////.

This fixes libsystemd.so getting dropped in Kiwi-built FEX images.

@alyssarosenzweig alyssarosenzweig marked this pull request as draft September 24, 2024 20:06
This fixes a collection of bugs when producing erofs images.

On one hand, this ensures that an exclude of `/sys` doesn't accidentally
match `/lib/libsystemd.so`, only `/sys/whatever`.

On the other hand, this ensures that `/dev/*` does match `/dev/vda` and
not just `/dev///////////`.

This fixes libsystemd.so getting dropped in Kiwi-built FEX images.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
@alyssarosenzweig alyssarosenzweig marked this pull request as ready for review September 24, 2024 21:39
@schaefi schaefi self-requested a review September 25, 2024 08:29
Copy link
Collaborator

@schaefi schaefi left a comment

Choose a reason for hiding this comment

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

Oh, thanks much. Yes I was not paying enough attention to the result of the expression. Looks good to me 👍

@schaefi schaefi merged commit d8bc2f7 into OSInside:main Sep 25, 2024
12 checks passed
@alyssarosenzweig
Copy link
Contributor Author

Thanks!

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