Looking through the current kernel config used by VyOS it seems like kernel modules wont be compressed during compilation?
CONFIG_MODULE_COMPRESS_NONE=y # CONFIG_MODULE_COMPRESS_GZIP is not set # CONFIG_MODULE_COMPRESS_XZ is not set # CONFIG_MODULE_COMPRESS_ZSTD is not set
Suggestion to enable xz compression of kernel modules:
# CONFIG_MODULE_COMPRESS_NONE is not set # CONFIG_MODULE_COMPRESS_GZIP is not set CONFIG_MODULE_COMPRESS_XZ=y # CONFIG_MODULE_COMPRESS_ZSTD is not set
If the compression would save the same ratio as below ref (about 63% smaller filesize) it would mean that the VyOS image regarding kernel modules could shrink from about 116MB down to approx 43MB (a saving of approx 73MB)).
Since filesystem.squashfs is already compressed using xz this might mean that the resulting iso not necessary would shrink as much as 73MB.
Ref: