How do I prevent initramfs from resuming from a zram device?

Whenever initramfs is updated I get a message similar to this:

I: The initramfs will attempt to resume from /dev/zram1
I: (UUID=1d4b8573-7eee-43c9-a02a-10a65fc17b8a)
I: Set the RESUME variable to override this.

However, because all my swap partitions are zram devices, I would like to disable resume. How can I do that?


You can disable resuming from swap devices by adding RESUME=none to the initramfs configuration.

Put this into a file named /etc/initramfs-tools/conf.d/noresume.conf:

# Disable resume (this system has no swap)
RESUME=none