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.


Firstly, suspend might be an option compared to hibernation for your subsequent startups if you can suffer a slow startup the very first time.
Otherwise look up “Linux from scratch” .
A lot of boot time is decompressing and mounting initrd, loading modules there, mounting the root filesystem, jumping to that.
Build a kernel that has exactly the minimum modules needed for your system, skip initrd and jump straight to a root filesystem and call your init binary (it can be BusyBox even) do exactly what’s needed there to get your network+graphics card up and running with a single shell script, done.
Also look at COW filesystems. Read only base with an overlay file for writes. Discard that file on each boot and you basically have a system that is always at the same state on startup.