Credit to @ryanc@infosec.exchange

I just did the graphic

you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 1 month ago (8 children)

Don't you need swap partitions to be able to use hibernation?

  • source
  • parent
  • hideshow 8 child comments
  • [–] 7 points 1 month ago (1 child)

    Nope, I hibernate with a swap file and it's in a LUKS partition. Although IIRC that whole setup requires me to use systemd boot.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 month ago

    I do the same and use ugrd. I think dracut would also work.
    You just set the resume kernel parameter to the decrypted memory device with the swapfile offset.
    As long as the initrd attempts a resume after it decrypted all volumes it'll work, and the initrd doesn't even need to understand why and what was resumed from

  • source
  • parent
  • [–] 4 points 1 month ago (1 child)
  • [–] 2 points 1 month ago (2 children)

    I don't use hibernation so I'm not sure.

  • source
  • parent
  • hideshow 2 child comments