From 2da34f53fc7646feec3d42d127f3e355d003b4cc Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Mon, 16 Apr 2018 15:08:21 -0500 Subject: [PATCH] Ubuntu 18.04: Disable hibernation resume Resume 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. --- Ubuntu-18.04-Root-on-ZFS.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ubuntu-18.04-Root-on-ZFS.md b/Ubuntu-18.04-Root-on-ZFS.md index 407e93e..e5819dc 100644 --- a/Ubuntu-18.04-Root-on-ZFS.md +++ b/Ubuntu-18.04-Root-on-ZFS.md @@ -425,6 +425,9 @@ The compression algorithm is set to `zle` because it is the cheapest available a # mkswap -f /dev/zvol/rpool/swap # echo /dev/zvol/rpool/swap none swap defaults 0 0 >> /etc/fstab + # echo RESUME=none > /etc/initramfs-tools/conf.d/resume + +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. 7.3 Enable the swap device: