d1a34d
From 8b1252ce33d45340a3420568c66790fb53b14d0a Mon Sep 17 00:00:00 2001
d1a34d
From: Lukas Nykryn <lnykryn@redhat.com>
d1a34d
Date: Tue, 15 Feb 2022 13:47:40 +0100
d1a34d
Subject: [PATCH] 95resume: only exclude this module, when swap is netdev
d1a34d
d1a34d
Resolves: #2017787
d1a34d
---
d1a34d
 modules.d/95resume/module-setup.sh | 5 ++---
d1a34d
 1 file changed, 2 insertions(+), 3 deletions(-)
d1a34d
d1a34d
diff --git a/modules.d/95resume/module-setup.sh b/modules.d/95resume/module-setup.sh
d1a34d
index f0507b13..ccf2493f 100755
d1a34d
--- a/modules.d/95resume/module-setup.sh
d1a34d
+++ b/modules.d/95resume/module-setup.sh
d1a34d
@@ -10,10 +10,9 @@ check() {
d1a34d
         return 1
d1a34d
     }
d1a34d
 
d1a34d
-    # Only support resume if hibernation is currently on
d1a34d
-    # and no swap is mounted on a net device
d1a34d
+    # Only support resume if no swap is mounted on a net device
d1a34d
     [[ $hostonly ]] || [[ $mount_needs ]] && {
d1a34d
-        swap_on_netdevice || [[ "$(cat /sys/power/resume)" == "0:0" ]] && return 255
d1a34d
+        swap_on_netdevice && return 255
d1a34d
     }
d1a34d
 
d1a34d
     return 0
d1a34d