Hi all,
Is there a method out there that can “save a hibernate state” to disk, and just permanently boot immediately into that state every time?
It would be OK to lose data used after this point. And ot would also be OK if it required building a custom image based on the hardware, similar to embedded systems.
The goal is to be able to, as quickly as possible, spin up a GPU server when needed, but without using suspend/resume.
Thanks.


I was really curious about the possibilities here for a re-usable “saved hibernation state”, and did a lot of digging around and testing in exploration of that idea. Please note that the following is wacky as hell and is not a good way to run a server at all, but is possible:
The next time you boot, the kernel will load the saved hibernation state from the partition specified in the resume= parameter, as if it had just been hibernated instead of halted.
Now for the downsides:
Anyway, now that we know it’s possible, if you really can’t suspend/resume in a non-wacky way I recommend instead just booting normally and trying to make the boot process as fast as possible. A good guide here: https://wiki.archlinux.org/title/Improving_performance/Boot_process
If booting quickly to a static state is the goal, alpine diskless mode might be a good option: https://wiki.alpinelinux.org/wiki/Diskless_Mode
First, that’s super smart. I’ve got hibernate to LUKS in LVM working already, so saving the state males sense. However, speed of resume being the issue doesn’t he’ll much, to your point.
The Diskless Alpine looks very interesting. Do you know if there is a Debian version?