Closed dyindude closed 6 years ago
should support
The RESUME=none is necessary to disable resuming from hibernation. This does not work, as the zvol is not present (because the pool has not yet been imported) at the time the resume script runs. If it is not disabled, the boot process hangs for 30 seconds waiting for the swap zvol to appear.
echo RESUME=/dev/mapper/system-swap > /etc/initramfs-tools/conf.d/resume
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
)
still a little slowlyness on boot..is this normal when resume is enabled?
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
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
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
reference guide for ideas on how to handle this