Toward a swap abstraction layer
Toward a swap abstraction layer
Posted May 29, 2023 12:20 UTC (Mon) by mb (subscriber, #50428)In reply to: Toward a swap abstraction layer by kleptog
Parent article: Toward a swap abstraction layer
You can do that by only enabling an additional swap partition just before hibernation and disabling it right after resume.
Posted May 30, 2023 13:38 UTC (Tue)
by gioele (subscriber, #61675)
[Link]
That's more or less the behavior of the `resume=` kernel argument, isn't it?
From https://man7.org/linux/man-pages/man7/kernel-command-line...
> resume=, resumeflags=
Toward a swap abstraction layer
>
> You can do that by only enabling an additional swap partition just before hibernation and disabling it right after resume.
>
> Enables resume from hibernation using the specified device and mount options. All fstab(5)-like paths are supported. For details, see systemd-hibernate-resume-generator(8).