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