-
Notifications
You must be signed in to change notification settings - Fork 0
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
Live CD: Trim ISO image size #35
Comments
Thoughts for the future
|
- Use Grub in both UEFI and BIOS boot modes - Use zstd compression for the live squashfs filesystem and the initramfs - Update kernel configuration for built-in modules - Update GitHub actions workflow to reflect script changes
Results are promising so far with a significant size reduction, we're now standing at roughly 680 MB.
The exact size for
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 |
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. |
- Switch from mg to nano for general familiarity/convenience - Custom kernel configuration will be addressed in separate ticket - Comment custom kernel compilation - Switch back to stock kernel image
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
75%
of the RAM is allocated as free space on the Live CD (grub boot parameters:ramdisk-size
, etc.)1 GB
of RAM allocated to a virtual machine, the application still runs pretty well. The intent is to keep RAM requirements as low as possible.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
zstd
compression for theinitramfs
generation and the Live CDsquashfs
dataReferences
The text was updated successfully, but these errors were encountered: