resume: Don't resume from a swap device on a ZVOL

OpenZFS currently doesn't support resuming from swap devices
backed by ZVOL. Without this correction boot process hangs at
initramfs stage.

Signed-off-by: szubersk <szuberskidamian@gmail.com>
This commit is contained in:
szubersk 2022-04-22 01:23:37 +02:00
parent 6f2963f292
commit e447e91bfb
No known key found for this signature in database
GPG Key ID: 5BA2439DCA1ABF18

View File

@ -76,6 +76,11 @@ if ! ischroot && [ -r /proc/swaps ]; then
report_verbose "Rejecting $resume_auto since it is zram"
ephemeral=true
;;
/dev/zd[0-9]*)
report_verbose "Rejecting $resume_auto since it is zvol"
ephemeral=true
;;
esac
$ephemeral || break