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

trim package imports #15

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

nkraetzschmar
Copy link
Contributor

throw out all packages from the import set that do not match any entry in a pkg.include file in gardenlinux

Warning

This may break non gardenlinux distros using our repo (e.g. gardenlinux-ccloud)
DO NOT merge till this is evaluated!

throw out all packages from the import set that do not match any entry in a pkg.include file in gardenlinux
@nkraetzschmar
Copy link
Contributor Author

cat $(find gardenlinux/gardenlinux/features -name pkg.include) | grep -v '^[$#]' | sort -u > used_pkgs
cat gardenlinux/repo/package-imports | grep -v '^[$#]' > imported_pkgs
join -v 1 imported_pkgs used_pkgs > pkg_trim
cat pkg_trim | while read pkg; do gsed -i "/^$pkg$/d" package-imports; done

@5kt
Copy link
Contributor

5kt commented Jul 31, 2024

Please keep in mind that some included packages might be needed, but are not included anywhere in the GL features.
They are used, for example, in gardenlinux-ccloud. One example would be sssd.

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