Closed yveszoundi closed 1 year ago
Thoughts for the future
systemd
by something lighter such as openrc, s6 if the Linux distribution supports it
SSH
, the Entrusted
server and possibly some audit componentsNetworkManager
or assisted systemd
featuresiptables
rulesdhcpcd
, wpa_supplicant
, etc.)Alpine
with its default "tar.gz overlay" approach)Results are promising so far with a significant size reduction, we're now standing at roughly 680 MB.
~100 MB
less since the last release (0.3.0
)~250 MB
less since the initial availability of the live CD (0.0.2
)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.
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.
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