-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hibernation #157
Comments
heh, yeah. i say this with as much sincerity as i can muster: if you have to ask, the answer is "you can't" (and if you recreate what i did there, you have a fifty-fifty chance of it either not working or raking your pool each time you try if you so much as breathe at it wrong. I permanently damaged that pool more times than I can count, so, I repeat: do NOT do it on a pool you can't can) |
just to clarify, I have a separate swap partition as described in the document. Are you saying it's still a no go? If so perhaps the document should be modified. For eg: currently it says |
@nabijaczleweli I guess you are doing swap on zvol.
This guide does not use ZFS for swap at all, for reasons described above. It creates a randomly encrypted swap partition by default and the user can optionally switch to persistent (LUKS2) encryption in optional configuration section. After switching LUKS2 for swap, it is possible to enable hibernation (suspend to disk). |
Also note that hibernation might not work on some hardware.
Basically resume from hibernation only works on integrated Intel graphics. Expect trouble if you are using discrete graphics or AMD APU. This is not specific to this guide - stock Ubuntu installation on ext4 also has these problems. |
Thanks for the link, that was it, I can now hibernate onto the swap partition on my Toshiba MIIX 720 with Intel GPU. Thanks once again. On 30 Apr 2021 16:02, ne9z ***@***.***> wrote:
If you have created a separate swap partition during installation and enabled encryption, you need to
encrypt boot pool with LUKS1, [see here](https://openzfs.github.io/openzfs-docs/Getting Started/Arch Linux/Arch Linux Root on ZFS.html#optional-configuration)encrypt swap partition with LUKS2 and add kernel cmdlines, see here
I removed the hibernation section as the guide is getting too long ;-)
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
|
I've opened a pull request to add this instruction back, among other improvements. #160 |
@ne9z, I have the following issue with the Arch Linux Root on ZFS HOWTO:
Can you please include the steps to enable hibernation with encrypted bootpool ?
The text was updated successfully, but these errors were encountered: