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

Remove crud from boot.iso #99

Closed
wants to merge 6 commits into from

Conversation

Projects
None yet
3 participants
@dashea
Copy link
Contributor

commented Mar 16, 2016

Remove a bunch of stuff that webkit and *-firmware pulled in. This adds a --except option to the installpkg command to filter packages from globs before they are handed to dnf.

@dashea

This comment has been minimized.

Copy link
Contributor Author

commented Mar 16, 2016

Added one more commit after realizing that the gnome icon theme doesn't really do anything anymore. That shaves another 10MB or so off of boot.iso.

## do much good for the installer. Also skip uhd-firmware which is not
## even a kernel firmware package.
installpkg *-firmware --except alsa* --except midisport-firmware \
--except crystalhd-firmware --except ivtv-firmware \

This comment has been minimized.

Copy link
@bcl

bcl Mar 17, 2016

Contributor

the pkgglob needs to go at the end. Or change what you wrote in ltmpl :)
Good idea though!

This comment has been minimized.

Copy link
@nullr0ute

nullr0ute Mar 18, 2016

Contributor

You could exclude iscan-firmware too (if you don't already)

This comment has been minimized.

Copy link
@dashea

dashea Mar 18, 2016

Author Contributor

Yes, iscan-firmware is the next line down ;-) It was another that was already in runtime-cleanup that I moved to the install command.

@bcl bcl added the master label Mar 17, 2016

dashea added some commits Mar 15, 2016

Remove a bunch of stuff pulled in by webkitgtk
webkitgtk4, a dependency of yelp, links to a lot of things. A lot of the
libraries pulled in through the dependency avalanche will never be used,
especially those that are dependencies of gstreamer plugins, so try to
clean some of it up.
Clean up /dev.
/dev ends up with the files "null" and "kmsg" from scriptlets
redirecting output to special files that do not exist. Remove this
output.
Add a means of excluding packages from a glob
This makes package selection a little more roundabout, but it allows for
unused packages (and their dependencies) to be removed from globs during
the install phase.

dnf.subject.Subject is the class used by dnf's Base.install to select
packages, so the behavior of installpkg without --except options is the
same as it was before.
Exclude unused firmware from package selection.
The sound, video and scanner firmware packages were removed during
cleanup. Instead, do not install them to begin with.

uhd-firmware is an addon package for a software radio tool and not
kernel firmware at all. Besides being 86MB on its own, it pulls in boost
and Tk, so leave all of that out.
Remove gnome-icon-theme
The gnome-icon-theme packages are legacy packages that are now handled
by adwaita-icon-theme.

@dashea dashea force-pushed the dashea:remove-crud branch from 71f28df to d390a01 Mar 17, 2016

@dashea

This comment has been minimized.

Copy link
Contributor Author

commented Mar 17, 2016

Redid the comment in ltmpl, since I liked the order I used in runtime-instal better.


excludes.append(pkgs[idx+1])
pkgs = pkgs[:idx] + pkgs[idx+2:]

This comment has been minimized.

Copy link
@bcl

bcl Mar 18, 2016

Contributor

This block expects the --except entries to all be at the start.

This comment has been minimized.

Copy link
@dashea

dashea Mar 18, 2016

Author Contributor

It looks for the --except entries anywhere in the list and pulls them out into the excludes list. So if you wanted you could interleave pkgglobs and --excepts.

This comment has been minimized.

Copy link
@bcl

bcl Mar 18, 2016

Contributor

Oh geez, I was thinking of it like a for loop. ACK.

@bcl bcl added the ACK label Mar 18, 2016

@dashea

This comment has been minimized.

Copy link
Contributor Author

commented Mar 22, 2016

Pushed.

@dashea dashea closed this Mar 22, 2016

@dashea dashea deleted the dashea:remove-crud branch Mar 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.