On Tue, 27 Aug 2024 17:12:34 +0200 Bastian Blank <waldi@debian.org> wrote:
After rebooting, you need to re-create all swap files or partitions. They depend on the page size and will be not longer usable. See mkswap(8) on how to do that.
Although I did not find anything relevant in systemd documentation, it looks like systemd.swap executes swapon with --fixpgsz which reinitializes (with mkswap) the swap space if its page size does not match the running kernel page size. So no user action should be needed.