osbuild / images

Image builder image definition library
Apache License 2.0
21 stars 49 forks source link

Anaconda installer images size on osbuild generated images. #409

Open mmartinv opened 8 months ago

mmartinv commented 8 months ago

Comparing the sizes of the Anaconda installer images on regular Fedora releases vs IOT releases we can observe a huge difference

curl -sL https://kojipkgs.fedoraproject.org/compose/39/latest-Fedora-39/compose/Everything/x86_64/os/images/install.img -o ./fedora-install.img
curl -sL https://kojipkgs.fedoraproject.org/compose/iot/Fedora-IoT-39-20240118.0/compose/IoT/x86_64/os/images/install.img -o ./fedora-iot-install.img
du -sh fedora-i*
545M    fedora-install.img
1,2G    fedora-iot-install.img

Is that difference justified?

bcl commented 8 months ago

The 'Everything' install.img is created using a different process -- Lorax removes a large pile of unneeded files from the root filesystem in order to save space on the boot.iso (which is what that install.img is from). See https://github.com/weldr/lorax/blob/master/share/templates.d/99-generic/runtime-cleanup.tmpl

mmartinv commented 8 months ago

Thanks for the info and the link!

We are in the process of migrating all the artifacts generation to osbuild but there are some missing pieces like the netboot bits (Please see #394). We are considering the creation of a new image type to provided them and while investigating the missing bits this size difference caught my eye, that's why I opened this issue. It might worth it to discuss whether it makes sense (or not) to provide the missing bits in #394.