This is a reworked version of upstream PR #2160 that actually does what was intended. --- a/modules.d/95resume/module-setup.sh +++ b/modules.d/95resume/module-setup.sh @@ -13,7 +13,8 @@ check() { # Only support resume if hibernation is currently on # and no swap is mounted on a net device [[ $hostonly ]] || [[ $mount_needs ]] && { + grep -rq '\(^\|[[:space:]]\)resume=' /proc/cmdline /etc/cmdline /etc/cmdline.d /etc/kernel/cmdline /usr/lib/kernel/cmdline 2> /dev/null && return 0 swap_on_netdevice || [[ -f /sys/power/resume && "$(cat /sys/power/resume)" == "0:0" ]] && return 255 } return 0