Source package referenced by zram-init 8.1 ebuild contains misconfigured execstart in zram_swap.service. source: ExecStart=/sbin/zram-init -s2 -azstd -Lzram_swap 2048 fails systemd load and reports algorithm issue modified: ExecStart=/sbin/zram-init -s2 -a lz4 -Lzram_swap 2048 syntax has been modified to specify lz4 algorithm and zram.swap.service loads without error. Note that lz4 should be installed in the system for this to work.
Presumably it just requires that you have CONFIG_CRYPTO_ZSTD enabled in your kernel (or CONFIG_CRYPTO_LZ4 for lz4, etc).
Adding mvaeth to CC for upstream verification, and potential resolutions. Tia Martin! :)
Which algorithms are supported depends on your kernel and your kernel configuration. I have not rechecked, but CONFIG_CRYPTO_ZSTD is probably indeed the correct option which is needed.
This bug is probably outdated as `=sys-block/zram-init-8.1` was dropped a long time ago and, therefore, should be marked as resolved ?
See comment#3. I would close the bug as INVALID, but I do not have permissions to change the status.