Honest question: why are we still defaulting to swap partitions in Linux distributions?

@karolherbst IIUC (big caveat) using a swapfile instead of a dedicated partition doesn't work for hibernation due to a combination of issues with grub, kernel_lockdown security, and / or allocating a swapfile on CoW filesystems like Btrfs

but if you don't need hibernation, you can simplify your setup considerably. that's just not (yet?) the default

@decathorpe @karolherbst hibernation to a swapfile on a LUKS-encrypted Btrfs filesystem works without issues (I'm doing it on Fedora 43, with TPM automatic decryption too), *if* you turn off secure boot that in turn turns off kernel_lockdown which is the only thing that prevents it from working by default. There may be some security reason for that but I fail to see what it could be (the filesystem is encrypted so the hibernation image can't be changed)