dyindude / ubuntu-zfs

BSD 2-Clause "Simplified" License
8 stars 4 forks source link

configure swap #23

Closed dyindude closed 6 years ago

dyindude commented 6 years ago

reference guide for ideas on how to handle this

dyindude commented 6 years ago

should support

dyindude commented 6 years ago

actually seem to have gotten hibernate to work by moving /usr/share/initramfs-tools/scripts/local-premount/resume to /usr/share/initramfs-tools/scripts/local-bottom/resume (which allows /usr/share/initramfs-tools/scripts/local-premount/zfs to run before resume, but after cryptroot)

dyindude commented 6 years ago

still a little slowlyness on boot..is this normal when resume is enabled?

dyindude commented 6 years ago

per https://github.com/zfsonlinux/zfs/issues/260 , the greater problem is that the filesystem isn't frozen/thawed as a part of this process, so it's probably better to shelf the idea of enabling hibernate on a zvol until upstream sorts it out

dyindude commented 6 years ago

because of this, I may actually implement an optional swap partition (that can still be mdadm/LUKS), since I will want to be able to use suspend-to-disk on my laptop

dyindude commented 6 years ago

reading over that issue some more, I realize that this is a problem for suspend/resume regardless of where the swap is located, so I'm going to follow the guide and set RESUME=none when setting up swap