Keep zram as this is the preferable and recommended method to organize swap since Fedora 33.
You can remove the swap partition to optimize responsiveness and extend the root.
There is something weird going on…
I can’t disable disk swap.
I comment out the swap entry in /etc/fstab
I delete the “resume=UUID=<…>” entry in /etc/default/grub
I give “grub2-mkconfig”
I give “dracut”
And while everything is updated, when i reboot i have disk swap active…
The only file that has the “resume=UUID=<…>” entry for the latest/default kernel entry is “/boot/grub2/grubenv” (as “kernelopts”)
But i’ m on an EFI system. There is not “/boot/grub2/grub.cfg” and the symlink “/etc/grub2.cfg” is broken.
In the “/etc/grub2-efi.cfg” and “/boot/efi/EFI/fedora/grub.cfg” kernelopts don’t contain “resume=UUID=<…>”
Also the “/boot/loader/entries/<…>.conf” for the default kernel that the system boots doesn’t have the “resume=UUID=<…>”
It looks like the grubenv file isn’t updated from that workflow, but is getting updated with every new kernel installation.
I found the “problem”. Is this unit “dev-sda4.swap”.
If someone reads “man systemd-gpt-auto-generator” will see that:
“Generator for automatically discovering and mounting root, … as well as discovering and enabling swap partitions, based on GPT partition type GUIDs”
“systemd-gpt-auto-generator is useful for centralizing file system configuration in the partition table and making configuration in /etc/fstab or on the kernel command line unnecessary”
Yep, i need to partition the disk so changes to be made on the GPT table.
I was hoping to disable the disk swap and go with zram, without repartitioning. Just in case in the future i need that disk swap.
simply change its type to something other than swap. It can then be restored if needed, or alternatively you can enable swap on a swapfile as already said.