Resuming hibernation into a different generation

I’ve always been curious, what would happen if I was running a NixOS laptop on say generation 43 and then hibernated my laptop, then when rebooting chose generation 42 at the GRUB menu instead?

Will it resume successfully, even if the generations are very different?

Resuming is a kernel task.

If kernel is different, it will probably refuse to load an old suspend-to-disk image.

If the kernel is the same, it shouldn’t matter how it was loaded pre-resume, it will just resume from suspend-to-disk.

1 Like

Thanks! That makes sense.