Skip to content

feat(live): ISO size reduction#2046

Merged
lslezak merged 1 commit intomasterfrom
reduce_iso_size
Feb 21, 2025
Merged

feat(live): ISO size reduction#2046
lslezak merged 1 commit intomasterfrom
reduce_iso_size

Conversation

@lslezak
Copy link
Contributor

@lslezak lslezak commented Feb 21, 2025

Live ISO improvements

Reduce the initrd and ISO size.

Delete not needed packages

  • Remove Mesa packages, we do not need OpenGL support
  • Remove libyui-qt and Qt libs
  • Remove python (installed just because of two simple scripts which we do not use)
    • To avoid removing it accidentally when some new dependency appears there is a dependency check

Additional improvements

Some more improvements were copied from the openSUSE Tumbleweed Live ISO:

  • Use a better compression for initrd (xz instead of zstd with the best compression level)
  • Removed some AMD GPU firmware (likely need only for OpenCL or GPU computing)
  • Copied Lenovo X13 dracut configuration, might be usable also on other ARM64 machines

Results (on x86_64)

  • The total ISO size decreased from 692MB to 634MB (-58MB, -8%)
  • The initrd size decreased from 87MB to 65MB (-22MB, -25%)

On different archs the numbers might be slightly different.

Note: XZ compression is more effective but requires more RAM and CPU for decompression, let's see how that will work on some PPC64 or ARM64 machines...

- delete not needed packages
- use a better compression for initrd
# remove OpenGL support
rpm -qa | grep ^Mesa | xargs rpm -e --nodeps

# uninstall libyui-qt and libqt (pulled in by the YaST dependencies)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think agama web ui should simply provide libyui backend, so it is not installed

@lslezak lslezak merged commit a01e06d into master Feb 21, 2025
6 checks passed
@lslezak lslezak deleted the reduce_iso_size branch February 21, 2025 18:26
@imobachgs imobachgs mentioned this pull request Feb 26, 2025
imobachgs added a commit that referenced this pull request Feb 26, 2025
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