rimerosolutions / entrusted

Sanitize documents to safe PDFs, for active content removal
GNU General Public License v3.0
26 stars 0 forks source link

Live CD: Trim ISO image size #35

Closed yveszoundi closed 1 year ago

yveszoundi commented 1 year ago

Background

The current Live CD ISO image is roughly 800 MB. As functionality gets added, the ISO image size will grow.

For the Live CD, there's a correlation between the RAM allocated to the virtual machine and free space

Request

Reduce the ISO image size as much as possible while keeping it functional. Pay attention to aarch64/arm64 support to ensure that the ISO image doesn't hang as noticed in early testing stages.

Overall changes

References

yveszoundi commented 1 year ago

Thoughts for the future

yveszoundi commented 1 year ago

Results are promising so far with a significant size reduction, we're now standing at roughly 680 MB.

The exact size for amd64 as of January 22nd is 675 MB, this will be roughly the same for aarch64 too.

du -hsm images/entrusted-livecd/entrusted-livecd.iso  
675     images/entrusted-livecd/entrusted-livecd.iso

There are couple of kernel options that are not required for this application and that can likely be disabled (NFS and several other modules). This would require more testing, but I suspect that with aggressive optimizations the ISO image size can get down to 650 MB and even lower.

yveszoundi commented 1 year ago

It is tricky to configure a custom kernel and still guarantee that it will work for most machines while keeping the size small. This is key to significantly reducing the ISO image size to the bare minimum possible without unused drivers or features.

A dedicated issue will be created for providing a custom kernel.