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

mkosi-initrd: remove some unnecessary files from openSUSE initrd #2713

Closed

Conversation

aafeijoo-suse
Copy link

Initial clean-up, please let me know if this is not the way to go. In my tests, this reduces the size from ~100M to ~40M.

@DaanDeMeyer
Copy link
Contributor

We can certainly add more RemoveFiles= but I'd prefer that anything which can be fixed with reasonable effort in packages is fixed there instead.

For example, you're removing /usr/bin/rpm*, but that means something is pulling in rpm as a dependency which really shouldn't be pulling in rpm as a required dependency, so I'd prefer you figure out what is pulling in rpm and fix that spec to make rpm an optional dependency. Same thing for other stuff.

suse-module-tools is another thing that should really be an optional dependency and not pulled in by default. And of course zypper should not be pulled in as a required dependency either. You get the idea.

For locales ideally it's done via a package as well. On Fedora there's glibc-minimal-langpack to only install C.UTF-8 for example.

Aside from those, I'd prefer that we only use RemoveFiles= for stuff that takes up significant space. For example I'm skeptical that /etc/zypp is going to be taking up a lot of space.

@aafeijoo-suse
Copy link
Author

Ok, understood.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants