enable zram swap on main/community devices
This installs zram-init and sets it to start on boot for all devices/UIs. However, the included conf.d/zram-init ensures that a zram swap is only created when deviceinfo_enable_zram_swap is set to 'true'.
I did an analysis of the pmos base install size with the 'none' UI selected, after depending on zram-init, and the following new package is installed:
zram-init-11.1-r1 installed size: 40 KiB
These packages are dependencies of zram-init, however they are already installed in the base image (with 'none' UI) so they are not counted above:
util-linux-misc-2.38.1-r0 installed size: 6816 KiB
e2fsprogs-extra-1.46.5-r4 installed size: 1324 KiB
So this seems like a very small price to pay for the benefit of not making the logic/implementation more complicated than this.
* Starting busybox syslog ... [ ok ]
ssh-keygen: generating new host keys: RSA ECDSA ED25519
* Starting sshd ... [ ok ]
zram swap: activating with size: 243 MB
* Loading zram module...
[ ok ]
* Swap->zram0
[ ok ]
* Starting local ... [ ok ]